Re: [Wicket-user] Question about DataTable

2006-11-14 Thread dulanov

Its work fine, I wrote it only for example purposes.


igor.vaynberg wrote:
> 
> this looks like it should work what is the stack trace you are getting?
> 
> -igor
> 
> 
> On 11/14/06, dulanov <[EMAIL PROTECTED]> wrote:
>>
>>
>> May be usefull my follow code snippet:
>>
>> List columns = new ArrayList();
>> columns.add(new PropertyColumn(new Model("column1"), "column1",
>> "column1"));
>> columns.add(new AbstractColumn(new Model("column2"), "column2") {
>> @Override public Component getHeader(String componentId) {
>> // To redefine a header representation
>> }
>>
>> public void populateItem(Item cellItem, String componentId,
>> IModel rowModel) {
>> Issue issue = (Issue) rowModel.getObject(cellItem);
>> cellItem.add(new Label("something"));
>> }
>> });
>> columns.add(new PropertyColumn(new Model("column3"), "column3",
>> "column3"));
>> columns.add(new PropertyColumn(new Model("column4"), "column4",
>> "column4"));
>> columns.add(new PropertyColumn(new Model("column5"), "column5",
>> "column5"));
>> columns.add(new AbstractColumn(new Model("column6"), "column6") {
>>
>> public void populateItem(Item cellItem, String componentId,
>> IModel rowModel) {
>> Issue issue = (Issue) rowModel.getObject(cellItem);
>> cellItem.add(new Label(componentId, "something"));
>> }
>> });
>>
>> table = new DataTable("table", columns.toArray(new
>> IColumn[columns.size()]), proveder, 25) {
>>
>> @Override protected Item newRowItem(String id, int index,
>> IModel
>> model) {
>> Item item = new OddEvenItem(id, index, model);
>> ModelObject object = (ModelObject) model.getObject(item);
>> String url = "location.href='" + urlFor(IssuePage.class,
>> SomePage.getPageParameters(object.getId())) + "';";
>> item.add(new AttributeModifier("title", true, new
>> Model("a
>> title")));
>> item.add(new AttributeModifier("onclick", true, new
>> Model(url)));
>> return item;
>> }
>> };
>> table .addTopToolbar(new OwnHeadersToolbar(table, provider));
>>
>> add(table );
>> }
>>
>> private static final class OwnHeadersToolbar extends HeadersToolbar {
>>
>> public IssueHeadersToolbar(DataTable table, ISortStateLocator
>> stateLocator) {
>> super(table, stateLocator);
>> ...
>> }
>> }
>>
>>
>> igor.vaynberg wrote:
>> >
>> > see addTopToolbar(), addBottomToolbar() and the constructor of
>> > DefaultDataTable
>> >
>> > -igor
>> >
>> >
>> > On 11/14/06, Carfield Yim <[EMAIL PROTECTED]> wrote:
>> >>
>> >> I just really try out this class with only PropertyColumn. However, I
>> >> still get this error when I add HeadersToolbar like
>> >>
>> >> table.add(new HeadersToolbar(table, provider));
>> >>
>> >> [MarkupContainer [Component id = datatable, page = , path =
>> >> datatable.DataTable]]
>> >> java.lang.IllegalArgumentException: A child with id 'toolbar' already
>> >> exists:
>> >> [MarkupContainer [Component id = datatable, page = , path =
>> >> datatable.DataTable]]
>> >>
>> >> Would you help me about that? I don't no idea and there is no
>> >> component call toolbar I've created
>> >>
>> >> On 11/14/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>> >> > there is an example in wicket-phonebook which lives in wicket-stuff
>> >> svn.
>> >> >
>> >> > basically you extend the abstractcolumn and add a panel or a
>> fragment.
>> >> its
>> >> > pretty easy. look at the example - mainly in
>> >> listcontactspage/actioncolumn i
>> >> > believe
>> >> >
>> >> > -igor
>> >> >
>> >> >
>> >> >
>> >> > On 11/13/06, Carfield Yim <[EMAIL PROTECTED]> wrote:
>> >> > >
>> >> > > Look like it is more easier to show a sortable and pagable table
>> than
>> >> > > using DataView. However if I need to show more than property from
>> an
>> >> > > object. Like a BookmarkablePageLink , How should I do? Look like I
>> >> > > need to extended a custom AbstractColumn. Where can I find samples
>> of
>> >> > > doing that?
>> >> > >
>> >> > >
>> >> >
>> >>
>> -
>> >> > > Using Tomcat but need to do more? Need to support web services,
>> >> security?
>> >> > > Get stuff done quickly with pre-integrated technology to make your
>> >> job
>> >> > easier
>> >> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> >> Geronimo
>> >> > >
>> >> >
>> >>
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> >> > > ___
>> >> > > Wicket-user mailing list
>> >> > > Wicket-user@lists.sourceforge.net
>> >> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >> > >
>> >> >
>> >> >
>> >> >
>> >>
>> --

Re: [Wicket-user] Question about DataTable

2006-11-14 Thread dulanov

Yes, you are right, I invented the previous code. The next piece of code from
my project works fine exactly ;)

columns.add(new AbstractColumn(new Model("")) {

@Override public Component getHeader(String componentId) {
Fragment checkBoxFragment = new
IssueSelectionFragment(componentId, "checkBoxFrag", IssuesTabularPanel.this,
new Issue());
checkBoxFragment.add(new AttributeModifier("title", true,
new Model("...")));
return checkBoxFragment;
}

public void populateItem(Item cellItem, String componentId,
IModel rowModel) {
Issue issue = (Issue) rowModel.getObject(cellItem);
Fragment checkBoxFragment = new
IssueSelectionFragment(componentId, "checkBoxFrag", IssuesTabularPanel.this,
issue);
checkBoxFragment.add(new AttributeModifier("title", true,
new Model("...")));
cellItem.add(checkBoxFragment);
cellItem.add(new AttributeModifier("class", true, new
Model("check")));
}
});




private static final class IssueSelectionFragment extends Fragment {

public IssueSelectionFragment(String id, String markupId,
MarkupContainer markupProvider, Issue issue) {
super(id, markupId, markupProvider);
add(new CheckBox("selected", new AbstractCheckBoxModel() {

@Override public void setSelected (Component component,
boolean sel) {
 
}

@Override public boolean isSelected(Component component)
{
return false;
}}) {

@Override protected boolean
wantOnSelectionChangedNotifications() {
return true;
}
});
}
}


igor.vaynberg wrote:
> 
> you cannot do this, you have to add a panel or a fragment that contains
> the
> link you want. this is because whatever you add is attached to 
> tags,
> and you cannot attach a link to a , only to  
> 
> -igor
> 
> 
> On 11/14/06, dulanov <[EMAIL PROTECTED]> wrote:
>>
>>
>> To add a bookmarkable link:
>>
>> columns.add(new AbstractColumn(new Model("column6"), "column6") {
>>
>> public void populateItem(Item cellItem, String componentId,
>> IModel rowModel) {
>> cellItem.add(new BookmarkablePageLink(componentId,
>> SomePage.class, somePageParameters)));
>> }
>> });
>>
>>
>> dulanov wrote:
>> >
>> > May be usefull my follow code snippet:
>> >
>> > List columns = new ArrayList();
>> > columns.add(new PropertyColumn(new Model("column1"), "column1",
>> > "column1"));
>> > columns.add(new AbstractColumn(new Model("column2"), "column2")
>> {
>> > @Override public Component getHeader(String componentId) {
>> > // To redefine a header representation
>> > }
>> >
>> > public void populateItem(Item cellItem, String componentId,
>> > IModel rowModel) {
>> > Issue issue = (Issue) rowModel.getObject(cellItem);
>> > cellItem.add(new Label("something"));
>> > }
>> > });
>> > columns.add(new PropertyColumn(new Model("column3"), "column3",
>> > "column3"));
>> > columns.add(new PropertyColumn(new Model("column4"), "column4",
>> > "column4"));
>> > columns.add(new PropertyColumn(new Model("column5"), "column5",
>> > "column5"));
>> > columns.add(new AbstractColumn(new Model("column6"), "column6")
>> {
>> >
>> > public void populateItem(Item cellItem, String componentId,
>> > IModel rowModel) {
>> > Issue issue = (Issue) rowModel.getObject(cellItem);
>> > cellItem.add(new Label(componentId, "something"));
>> > }
>> > });
>> >
>> > table = new DataTable("table", columns.toArray(new
>> > IColumn[columns.size()]), proveder, 25) {
>> >
>> > @Override protected Item newRowItem(String id, int index,
>> > IModel model) {
>> > Item item = new OddEvenItem(id, index, model);
>> > ModelObject object = (ModelObject) model.getObject
>> (item);
>> > String url = "location.href='" +
>> urlFor(IssuePage.class,
>> > SomePage.getPageParameters(object.getId())) + "';";
>> > item.add(new AttributeModifier("title", true, new
>> Model("a
>> > title")));
>> > item.add(new AttributeModifier("onclick", true, new
>> > Model(url)));
>> > return item;
>> > }
>> > };
>> > table .addTopToolbar(new OwnHeadersToolbar(table, provider));
>> >
>> > add(table );
>> > }
>> >
>> > private static final class OwnHeadersToolbar extends HeadersToolbar
>> {
>> >
>> > public IssueHeadersToolbar(DataTable table, ISortStateLocator
>> > stateLocator) {
>> > super(table, stateLocat

Re: [Wicket-user] Question about DataTable

2006-11-14 Thread Carfield Yim
The problem solved, and I guess the document needed to update. First,
I just copy the example that using DataTable directly but in fact I
should use either AjaxFallbackDefaultDataTable or DefaultDataTable.
And I should use add component at top or bottom using addBottomToolbar
or addTopToolbar, but not just call add() method.


On 11/15/06, Carfield Yim <[EMAIL PROTECTED]> wrote:
> I just really try out this class with only PropertyColumn. However, I
> still get this error when I add HeadersToolbar like
>
> table.add(new HeadersToolbar(table, provider));
>
> [MarkupContainer [Component id = datatable, page = , path =
> datatable.DataTable]]
> java.lang.IllegalArgumentException: A child with id 'toolbar' already exists:
> [MarkupContainer [Component id = datatable, page = , path =
> datatable.DataTable]]
>
> Would you help me about that? I don't no idea and there is no
> component call toolbar I've created
>
> On 11/14/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > there is an example in wicket-phonebook which lives in wicket-stuff svn.
> >
> > basically you extend the abstractcolumn and add a panel or a fragment. its
> > pretty easy. look at the example - mainly in listcontactspage/actioncolumn i
> > believe
> >
> > -igor
> >
> >
> >
> > On 11/13/06, Carfield Yim <[EMAIL PROTECTED]> wrote:
> > >
> > > Look like it is more easier to show a sortable and pagable table than
> > > using DataView. However if I need to show more than property from an
> > > object. Like a BookmarkablePageLink , How should I do? Look like I
> > > need to extended a custom AbstractColumn. Where can I find samples of
> > > doing that?
> > >
> > >
> > -
> > > Using Tomcat but need to do more? Need to support web services, security?
> > > Get stuff done quickly with pre-integrated technology to make your job
> > easier
> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > >
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> >
> > -
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job
> > easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> >
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question about DataTable

2006-11-14 Thread Igor Vaynberg
this looks like it should work what is the stack trace you are getting?-igorOn 11/14/06, dulanov <[EMAIL PROTECTED]
> wrote:May be usefull my follow code snippet:List columns = new ArrayList();
columns.add(new PropertyColumn(new Model("column1"), "column1","column1"));columns.add(new AbstractColumn(new Model("column2"), "column2") {
@Override public Component getHeader(String componentId) {// To redefine a header representation}public void populateItem(Item cellItem, String componentId,
IModel rowModel) {Issue issue = (Issue) rowModel.getObject(cellItem);cellItem.add(new Label("something"));}});columns.add(new PropertyColumn(new Model("column3"), "column3",
"column3"));columns.add(new PropertyColumn(new Model("column4"), "column4","column4"));columns.add(new PropertyColumn(new Model("column5"), "column5",
"column5"));columns.add(new AbstractColumn(new Model("column6"), "column6") {public void populateItem(Item cellItem, String componentId,IModel rowModel) {
Issue issue = (Issue) rowModel.getObject(cellItem);cellItem.add(new Label(componentId, "something"));}});table = new DataTable("table", 
columns.toArray(newIColumn[columns.size()]), proveder, 25) {@Override protected Item newRowItem(String id, int index, IModelmodel) {Item item = new OddEvenItem(id, index, model);
ModelObject object = (ModelObject) model.getObject(item);String url = ""
item.add(new AttributeModifier("title", true, new Model("atitle")));item.add(new AttributeModifier("onclick", true, newModel(url)));return item;
}};table .addTopToolbar(new OwnHeadersToolbar(table, provider));add(table );}private static final class OwnHeadersToolbar extends HeadersToolbar {
public IssueHeadersToolbar(DataTable table, ISortStateLocatorstateLocator) {super(table, stateLocator);...}}igor.vaynberg wrote:>
> see addTopToolbar(), addBottomToolbar() and the constructor of> DefaultDataTable>> -igor>>> On 11/14/06, Carfield Yim <[EMAIL PROTECTED]
> wrote: I just really try out this class with only PropertyColumn. However, I>> still get this error when I add HeadersToolbar like table.add(new HeadersToolbar(table, provider));
 [MarkupContainer [Component id = datatable, page = , path =>> datatable.DataTable]]>> java.lang.IllegalArgumentException: A child with id 'toolbar' already>> exists:
>> [MarkupContainer [Component id = datatable, page = , path =>> datatable.DataTable]] Would you help me about that? I don't no idea and there is no>> component call toolbar I've created
 On 11/14/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:>> > there is an example in wicket-phonebook which lives in wicket-stuff
>> svn.>> >>> > basically you extend the abstractcolumn and add a panel or a fragment.>> its>> > pretty easy. look at the example - mainly in>> listcontactspage/actioncolumn i
>> > believe>> >>> > -igor>> >>> >>> >>> > On 11/13/06, Carfield Yim <[EMAIL PROTECTED]
> wrote:>> > >>> > > Look like it is more easier to show a sortable and pagable table than>> > > using DataView. However if I need to show more than property from an
>> > > object. Like a BookmarkablePageLink , How should I do? Look like I>> > > need to extended a custom AbstractColumn. Where can I find samples of>> > > doing that?>> > >
>> > >>> >>> ->> > > Using Tomcat but need to do more? Need to support web services,>> security?
>> > > Get stuff done quickly with pre-integrated technology to make your>> job>> > easier>> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo>> > >>> >>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> > > ___>> > > Wicket-user mailing list>> > > Wicket-user@lists.sourceforge.net
>> > > https://lists.sourceforge.net/lists/listinfo/wicket-user>> > >>> >>> >>> >
>> ->> > Using Tomcat but need to do more? Need to support web services,>> security?>> > Get stuff done quickly with pre-integrated technology to make your job
>> > easier>> > Download IBM WebSphere Application Server v.1.0.1 based on Apache>> Geronimo>> >>> 
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>> >>> > ___>> > Wicket-user mailing list>> > 
Wicket-user@lists.sourceforge.net>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >>> >>> > ->> Take Surveys. Earn Cash. Influence 

Re: [Wicket-user] Question about DataTable

2006-11-14 Thread Igor Vaynberg
you cannot do this, you have to add a panel or a fragment that contains the link you want. this is because whatever you add is attached to  tags, and you cannot attach a link to a , only to 
-igorOn 11/14/06, dulanov <[EMAIL PROTECTED]> wrote:
To add a bookmarkable link:columns.add(new AbstractColumn(new Model("column6"), "column6") {public void populateItem(Item cellItem, String componentId,IModel rowModel) {
cellItem.add(new BookmarkablePageLink(componentId,SomePage.class, somePageParameters)));}});dulanov wrote:>> May be usefull my follow code snippet:
>> List columns = new ArrayList();> columns.add(new PropertyColumn(new Model("column1"), "column1",> "column1"));
> columns.add(new AbstractColumn(new Model("column2"), "column2") {> @Override public Component getHeader(String componentId) {> // To redefine a header representation
> }>> public void populateItem(Item cellItem, String componentId,> IModel rowModel) {> Issue issue = (Issue) rowModel.getObject(cellItem);> 
cellItem.add(new Label("something"));> }> });> columns.add(new PropertyColumn(new Model("column3"), "column3",> "column3"));
> columns.add(new PropertyColumn(new Model("column4"), "column4",> "column4"));> columns.add(new PropertyColumn(new Model("column5"), "column5",
> "column5"));> columns.add(new AbstractColumn(new Model("column6"), "column6") {>> public void populateItem(Item cellItem, String componentId,
> IModel rowModel) {> Issue issue = (Issue) rowModel.getObject(cellItem);> cellItem.add(new Label(componentId, "something"));> }> });
>> table = new DataTable("table", columns.toArray(new> IColumn[columns.size()]), proveder, 25) {>> @Override protected Item newRowItem(String id, int index,
> IModel model) {> Item item = new OddEvenItem(id, index, model);> ModelObject object = (ModelObject) model.getObject(item);> String url = ""
location.href='';";> item.add(new AttributeModifier("title", true, new Model("a> title")));
> item.add(new AttributeModifier("onclick", true, new> Model(url)));> return item;> }> };> table .addTopToolbar(new OwnHeadersToolbar(table, provider));
>> add(table );> }>> private static final class OwnHeadersToolbar extends HeadersToolbar {>> public IssueHeadersToolbar(DataTable table, ISortStateLocator
> stateLocator) {> super(table, stateLocator);> ...> }> }>>> igor.vaynberg wrote: see addTopToolbar(), addBottomToolbar() and the constructor of
>> DefaultDataTable -igor>> On 11/14/06, Carfield Yim <[EMAIL PROTECTED]> wrote:>> I just really try out this class with only PropertyColumn. However, I
>>> still get this error when I add HeadersToolbar like>> table.add(new HeadersToolbar(table, provider));>> [MarkupContainer [Component id = datatable, page = , path =
>>> datatable.DataTable]]>>> java.lang.IllegalArgumentException: A child with id 'toolbar' already>>> exists:>>> [MarkupContainer [Component id = datatable, page = , path =
>>> datatable.DataTable]]>> Would you help me about that? I don't no idea and there is no>>> component call toolbar I've created>> On 11/14/06, Igor Vaynberg <
[EMAIL PROTECTED]> wrote:>>> > there is an example in wicket-phonebook which lives in wicket-stuff>>> svn.>>>  > basically you extend the abstractcolumn and add a panel or a fragment.
>>> its>>> > pretty easy. look at the example - mainly in>>> listcontactspage/actioncolumn i>>> > believe>>>  > -igor>>> >
>>>   > On 11/13/06, Carfield Yim <[EMAIL PROTECTED]> wrote:>>> >  > > Look like it is more easier to show a sortable and pagable table
>>> than>>> > > using DataView. However if I need to show more than property from an>>> > > object. Like a BookmarkablePageLink , How should I do? Look like I>>> > > need to extended a custom AbstractColumn. Where can I find samples
>>> of>>> > > doing that?>>> >  >   -
>>> > > Using Tomcat but need to do more? Need to support web services,>>> security?>>> > > Get stuff done quickly with pre-integrated technology to make your>>> job
>>> > easier>>> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache>>> Geronimo>>> >   
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>>> > > ___>>> > > Wicket-user mailing list>>> > > 
Wicket-user@lists.sourceforge.net>>> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
>>> >     --

Re: [Wicket-user] Question about DataTable

2006-11-14 Thread dulanov

To add a bookmarkable link:

columns.add(new AbstractColumn(new Model("column6"), "column6") {

public void populateItem(Item cellItem, String componentId,
IModel rowModel) {
cellItem.add(new BookmarkablePageLink(componentId,
SomePage.class, somePageParameters)));
}
}); 


dulanov wrote:
> 
> May be usefull my follow code snippet:
> 
> List columns = new ArrayList();
> columns.add(new PropertyColumn(new Model("column1"), "column1",
> "column1"));
> columns.add(new AbstractColumn(new Model("column2"), "column2") {
> @Override public Component getHeader(String componentId) {
> // To redefine a header representation
> }
> 
> public void populateItem(Item cellItem, String componentId,
> IModel rowModel) {
> Issue issue = (Issue) rowModel.getObject(cellItem);
> cellItem.add(new Label("something"));
> }
> });
> columns.add(new PropertyColumn(new Model("column3"), "column3",
> "column3"));
> columns.add(new PropertyColumn(new Model("column4"), "column4",
> "column4"));
> columns.add(new PropertyColumn(new Model("column5"), "column5",
> "column5"));
> columns.add(new AbstractColumn(new Model("column6"), "column6") {
> 
> public void populateItem(Item cellItem, String componentId,
> IModel rowModel) {
> Issue issue = (Issue) rowModel.getObject(cellItem);
> cellItem.add(new Label(componentId, "something"));
> }
> });
> 
> table = new DataTable("table", columns.toArray(new
> IColumn[columns.size()]), proveder, 25) {
> 
> @Override protected Item newRowItem(String id, int index,
> IModel model) {
> Item item = new OddEvenItem(id, index, model);
> ModelObject object = (ModelObject) model.getObject(item);
> String url = "location.href='" + urlFor(IssuePage.class,
> SomePage.getPageParameters(object.getId())) + "';";
> item.add(new AttributeModifier("title", true, new Model("a
> title")));
> item.add(new AttributeModifier("onclick", true, new
> Model(url)));
> return item;
> }
> };
> table .addTopToolbar(new OwnHeadersToolbar(table, provider));
> 
> add(table );
> }
> 
> private static final class OwnHeadersToolbar extends HeadersToolbar {
> 
> public IssueHeadersToolbar(DataTable table, ISortStateLocator
> stateLocator) {
> super(table, stateLocator);
> ...
> }
> }
> 
> 
> igor.vaynberg wrote:
>> 
>> see addTopToolbar(), addBottomToolbar() and the constructor of
>> DefaultDataTable
>> 
>> -igor
>> 
>> 
>> On 11/14/06, Carfield Yim <[EMAIL PROTECTED]> wrote:
>>>
>>> I just really try out this class with only PropertyColumn. However, I
>>> still get this error when I add HeadersToolbar like
>>>
>>> table.add(new HeadersToolbar(table, provider));
>>>
>>> [MarkupContainer [Component id = datatable, page = , path =
>>> datatable.DataTable]]
>>> java.lang.IllegalArgumentException: A child with id 'toolbar' already
>>> exists:
>>> [MarkupContainer [Component id = datatable, page = , path =
>>> datatable.DataTable]]
>>>
>>> Would you help me about that? I don't no idea and there is no
>>> component call toolbar I've created
>>>
>>> On 11/14/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>>> > there is an example in wicket-phonebook which lives in wicket-stuff
>>> svn.
>>> >
>>> > basically you extend the abstractcolumn and add a panel or a fragment.
>>> its
>>> > pretty easy. look at the example - mainly in
>>> listcontactspage/actioncolumn i
>>> > believe
>>> >
>>> > -igor
>>> >
>>> >
>>> >
>>> > On 11/13/06, Carfield Yim <[EMAIL PROTECTED]> wrote:
>>> > >
>>> > > Look like it is more easier to show a sortable and pagable table
>>> than
>>> > > using DataView. However if I need to show more than property from an
>>> > > object. Like a BookmarkablePageLink , How should I do? Look like I
>>> > > need to extended a custom AbstractColumn. Where can I find samples
>>> of
>>> > > doing that?
>>> > >
>>> > >
>>> >
>>> -
>>> > > Using Tomcat but need to do more? Need to support web services,
>>> security?
>>> > > Get stuff done quickly with pre-integrated technology to make your
>>> job
>>> > easier
>>> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache
>>> Geronimo
>>> > >
>>> >
>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>> > > ___
>>> > > Wicket-user mailing list
>>> > > Wicket-user@lists.sourceforge.net
>>> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
>>> > >
>>> >
>>> >
>>> >
>>> -
>>> > Using To

Re: [Wicket-user] Question about DataTable

2006-11-14 Thread dulanov

May be usefull my follow code snippet:

List columns = new ArrayList();
columns.add(new PropertyColumn(new Model("column1"), "column1",
"column1"));
columns.add(new AbstractColumn(new Model("column2"), "column2") {
@Override public Component getHeader(String componentId) {
// To redefine a header representation
}

public void populateItem(Item cellItem, String componentId,
IModel rowModel) {
Issue issue = (Issue) rowModel.getObject(cellItem);
cellItem.add(new Label("something"));
}
});
columns.add(new PropertyColumn(new Model("column3"), "column3",
"column3"));
columns.add(new PropertyColumn(new Model("column4"), "column4",
"column4"));
columns.add(new PropertyColumn(new Model("column5"), "column5",
"column5"));
columns.add(new AbstractColumn(new Model("column6"), "column6") {

public void populateItem(Item cellItem, String componentId,
IModel rowModel) {
Issue issue = (Issue) rowModel.getObject(cellItem);
cellItem.add(new Label(componentId, "something"));
}
});

table = new DataTable("table", columns.toArray(new
IColumn[columns.size()]), proveder, 25) {

@Override protected Item newRowItem(String id, int index, IModel
model) {
Item item = new OddEvenItem(id, index, model);
ModelObject object = (ModelObject) model.getObject(item);
String url = "location.href='" + urlFor(IssuePage.class,
SomePage.getPageParameters(object.getId())) + "';";
item.add(new AttributeModifier("title", true, new Model("a
title")));
item.add(new AttributeModifier("onclick", true, new
Model(url)));
return item;
}
};
table .addTopToolbar(new OwnHeadersToolbar(table, provider));

add(table );
}

private static final class OwnHeadersToolbar extends HeadersToolbar {

public IssueHeadersToolbar(DataTable table, ISortStateLocator
stateLocator) {
super(table, stateLocator);
...
}
}


igor.vaynberg wrote:
> 
> see addTopToolbar(), addBottomToolbar() and the constructor of
> DefaultDataTable
> 
> -igor
> 
> 
> On 11/14/06, Carfield Yim <[EMAIL PROTECTED]> wrote:
>>
>> I just really try out this class with only PropertyColumn. However, I
>> still get this error when I add HeadersToolbar like
>>
>> table.add(new HeadersToolbar(table, provider));
>>
>> [MarkupContainer [Component id = datatable, page = , path =
>> datatable.DataTable]]
>> java.lang.IllegalArgumentException: A child with id 'toolbar' already
>> exists:
>> [MarkupContainer [Component id = datatable, page = , path =
>> datatable.DataTable]]
>>
>> Would you help me about that? I don't no idea and there is no
>> component call toolbar I've created
>>
>> On 11/14/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>> > there is an example in wicket-phonebook which lives in wicket-stuff
>> svn.
>> >
>> > basically you extend the abstractcolumn and add a panel or a fragment.
>> its
>> > pretty easy. look at the example - mainly in
>> listcontactspage/actioncolumn i
>> > believe
>> >
>> > -igor
>> >
>> >
>> >
>> > On 11/13/06, Carfield Yim <[EMAIL PROTECTED]> wrote:
>> > >
>> > > Look like it is more easier to show a sortable and pagable table than
>> > > using DataView. However if I need to show more than property from an
>> > > object. Like a BookmarkablePageLink , How should I do? Look like I
>> > > need to extended a custom AbstractColumn. Where can I find samples of
>> > > doing that?
>> > >
>> > >
>> >
>> -
>> > > Using Tomcat but need to do more? Need to support web services,
>> security?
>> > > Get stuff done quickly with pre-integrated technology to make your
>> job
>> > easier
>> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> > >
>> >
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> > > ___
>> > > Wicket-user mailing list
>> > > Wicket-user@lists.sourceforge.net
>> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> > >
>> >
>> >
>> >
>> -
>> > Using Tomcat but need to do more? Need to support web services,
>> security?
>> > Get stuff done quickly with pre-integrated technology to make your job
>> > easier
>> > Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> >
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> >
>> > ___
>> > Wicket-user mailing list
>> > Wicket-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >
>> >
>> >
>>
>> 

Re: [Wicket-user] Question about DataTable

2006-11-14 Thread Igor Vaynberg
see addTopToolbar(), addBottomToolbar() and the constructor of DefaultDataTable-igorOn 11/14/06, Carfield Yim <
[EMAIL PROTECTED]> wrote:I just really try out this class with only PropertyColumn. However, I
still get this error when I add HeadersToolbar liketable.add(new HeadersToolbar(table, provider));[MarkupContainer [Component id = datatable, page = , path =datatable.DataTable
]]java.lang.IllegalArgumentException: A child with id 'toolbar' already exists:[MarkupContainer [Component id = datatable, page = , path =datatable.DataTable]]Would you help me about that? I don't no idea and there is no
component call toolbar I've createdOn 11/14/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:> there is an example in wicket-phonebook which lives in wicket-stuff svn.
>> basically you extend the abstractcolumn and add a panel or a fragment. its> pretty easy. look at the example - mainly in listcontactspage/actioncolumn i> believe>> -igor>
>>> On 11/13/06, Carfield Yim <[EMAIL PROTECTED]> wrote:> >> > Look like it is more easier to show a sortable and pagable table than
> > using DataView. However if I need to show more than property from an> > object. Like a BookmarkablePageLink , How should I do? Look like I> > need to extended a custom AbstractColumn. Where can I find samples of
> > doing that?> >> >> -> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job> easier> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo> >> 
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> > ___> > Wicket-user mailing list> > 
Wicket-user@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/wicket-user>  -
> Using Tomcat but need to do more? Need to support web services, security?> Get stuff done quickly with pre-integrated technology to make your job> easier> Download IBM WebSphere Application Server 
v.1.0.1 based on Apache Geronimo> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> ___> Wicket-user mailing list> Wicket-user@lists.sourceforge.net> 
https://lists.sourceforge.net/lists/listinfo/wicket-user>>>-Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question about DataTable

2006-11-14 Thread Carfield Yim
I just really try out this class with only PropertyColumn. However, I
still get this error when I add HeadersToolbar like

table.add(new HeadersToolbar(table, provider));

[MarkupContainer [Component id = datatable, page = , path =
datatable.DataTable]]
java.lang.IllegalArgumentException: A child with id 'toolbar' already exists:
[MarkupContainer [Component id = datatable, page = , path =
datatable.DataTable]]

Would you help me about that? I don't no idea and there is no
component call toolbar I've created

On 11/14/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> there is an example in wicket-phonebook which lives in wicket-stuff svn.
>
> basically you extend the abstractcolumn and add a panel or a fragment. its
> pretty easy. look at the example - mainly in listcontactspage/actioncolumn i
> believe
>
> -igor
>
>
>
> On 11/13/06, Carfield Yim <[EMAIL PROTECTED]> wrote:
> >
> > Look like it is more easier to show a sortable and pagable table than
> > using DataView. However if I need to show more than property from an
> > object. Like a BookmarkablePageLink , How should I do? Look like I
> > need to extended a custom AbstractColumn. Where can I find samples of
> > doing that?
> >
> >
> -
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job
> easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Multi-portlet app?

2006-11-14 Thread Igor Vaynberg
you might want to file this on jira and assign it to janne-igorOn 11/14/06, Gustavo Hexsel <[EMAIL PROTECTED]
> wrote:On 11/14/06, Gustavo Hexsel <[EMAIL PROTECTED]
> wrote:>   Here's an example.  I've removed the lib folder to make the size> manageable (I was only using commons-logging, log4j and yesterday's> snapshot of Wicket Core).>>   It all works as long as you don't submit both forms in the same
> session, then the second one always fails.>>  []s Gus On 11/14/06, Gustavo Hexsel <[EMAIL PROTECTED]> wrote:> >   Hm, I don't yet fully understand the framework, yet what seems to be
> > happening is that when the page is generated, each portlet is rendered> > once.  Same happens when I submit the form in one of the portlets.> > However, when I submit a form on one, then after a refresh submit the
> > other, I get 3 rendering phases, 2 for the portlet that was last> > clicked.> >> >   I'm trying to generate a simple test case to illustrate this.> >> >  []s Gus
> >> >> >> > On 11/14/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:> > > janne is the portlet guy, are you reading with us?
> > >> > > -igor> > >> > >> > >> > > On 11/14/06, Gustavo Hexsel <[EMAIL PROTECTED] > wrote:> > > >
> > > > Actually, this doesn't seem to work at all.  When I put 2 portlets> > > > (just copied & pasted from the Wicket example, and changed the> > > > wicket:ids so they wouldn't conflict), the second one is expired
> > > > whenever I click on anything on it.  Any hints on what I should be> > > > trying to improve in Wicket or the example for this?> > > >> > > > []s Gus
> > > >> > > >> > > >> > > > On 11/13/06, Gustavo Hexsel <[EMAIL PROTECTED]> wrote:> > > > >   Hi folks,
> > > > >> > > > >   I was taking a look at Wicket's support for Portlets, and after a> > > > > bit of a struggle (mostly caused by Liferay, Ubuntu, MySQL and> > > > > Tomcat), I got the examples working.
> > > > >> > > > >   Then I got curious and tried to set the app to have 2 portlets that> > > > > communicate, but I'm a little lost.  Is it even possible?  The
> > > > > javadocs seem to indicate that there should be one "application" per> > > > >  declaration, which seems conceptually wrong to me (should be> > > > > one Portlet instead).  Each PortletApplication seems to be a factory
> > > > > for a session.  Will they both get called?  Any recommended way of> > > > > sharing the session for communication purposes?> > > > >> > > > >   Hm... Guess I'll try that and post the results in case someone else
> > > > > is curious. :)> > > > >> > > > > []s Gus> > > > >> > > >> > > >> > > -
> > > > Using Tomcat but need to do more? Need to support web services, security?> > > > Get stuff done quickly with pre-integrated technology to make your job> > > easier> > > > Download IBM WebSphere Application Server 
v.1.0.1 based on Apache Geronimo> > > >> > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > > ___> > > > Wicket-user mailing list> > > > Wicket-user@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/wicket-user> > > >> > >> > >> > > -
> > > SF.net email is sponsored by: A Better Job is Waiting for You - Find it Now.> > > Check out Slashdot's new job board. Browse through tons of technical jobs> > > posted by companies looking to hire people just like you.
> > > http://jobs.slashdot.org/> > >> > > ___> > > Wicket-user mailing list> > > 
Wicket-user@lists.sourceforge.net> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >> > >> > >> -Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Multi-portlet app?

2006-11-14 Thread Gustavo Hexsel

On 11/14/06, Gustavo Hexsel <[EMAIL PROTECTED]> wrote:

  Here's an example.  I've removed the lib folder to make the size
manageable (I was only using commons-logging, log4j and yesterday's
snapshot of Wicket Core).

  It all works as long as you don't submit both forms in the same
session, then the second one always fails.

 []s Gus



On 11/14/06, Gustavo Hexsel <[EMAIL PROTECTED]> wrote:
>   Hm, I don't yet fully understand the framework, yet what seems to be
> happening is that when the page is generated, each portlet is rendered
> once.  Same happens when I submit the form in one of the portlets.
> However, when I submit a form on one, then after a refresh submit the
> other, I get 3 rendering phases, 2 for the portlet that was last
> clicked.
>
>   I'm trying to generate a simple test case to illustrate this.
>
>  []s Gus
>
>
>
> On 11/14/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > janne is the portlet guy, are you reading with us?
> >
> > -igor
> >
> >
> >
> > On 11/14/06, Gustavo Hexsel <[EMAIL PROTECTED] > wrote:
> > >
> > > Actually, this doesn't seem to work at all.  When I put 2 portlets
> > > (just copied & pasted from the Wicket example, and changed the
> > > wicket:ids so they wouldn't conflict), the second one is expired
> > > whenever I click on anything on it.  Any hints on what I should be
> > > trying to improve in Wicket or the example for this?
> > >
> > > []s Gus
> > >
> > >
> > >
> > > On 11/13/06, Gustavo Hexsel <[EMAIL PROTECTED]> wrote:
> > > >   Hi folks,
> > > >
> > > >   I was taking a look at Wicket's support for Portlets, and after a
> > > > bit of a struggle (mostly caused by Liferay, Ubuntu, MySQL and
> > > > Tomcat), I got the examples working.
> > > >
> > > >   Then I got curious and tried to set the app to have 2 portlets that
> > > > communicate, but I'm a little lost.  Is it even possible?  The
> > > > javadocs seem to indicate that there should be one "application" per
> > > >  declaration, which seems conceptually wrong to me (should be
> > > > one Portlet instead).  Each PortletApplication seems to be a factory
> > > > for a session.  Will they both get called?  Any recommended way of
> > > > sharing the session for communication purposes?
> > > >
> > > >   Hm... Guess I'll try that and post the results in case someone else
> > > > is curious. :)
> > > >
> > > > []s Gus
> > > >
> > >
> > >
> > -
> > > Using Tomcat but need to do more? Need to support web services, security?
> > > Get stuff done quickly with pre-integrated technology to make your job
> > easier
> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > >
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> >
> > -
> > SF.net email is sponsored by: A Better Job is Waiting for You - Find it Now.
> > Check out Slashdot's new job board. Browse through tons of technical jobs
> > posted by companies looking to hire people just like you.
> > http://jobs.slashdot.org/
> >
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
>





tester.renametozipplz
Description: Binary data
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Using Javascript Effects Before An Ajax Call

2006-11-14 Thread Igor Vaynberg
why would this be a bug in wicket? looks to be clearly a bug in your code. the effect is clearly executed asynchronously from the rest of the _javascript_ "thread" so you need to find a way to block until the effect is complete.
-igorOn 11/14/06, cygnusx2112 <[EMAIL PROTECTED]> wrote:
I am using the AjaxRequestTarget.prependJavaScript method to apply an Effectto an element before it gets replaced by the Ajax call. The problem is thatthe Ajax replacement occurs before the animation code for the effect has a
chance to complete, making the effect unnoticable. My event handler codelooks like this:protected void onEvent(final AjaxRequestTarget target){testLabel.setModelObject
("New Label Text");target.prependJavascript("new Effect.BlindUp('" +testLabel.getMarkupId() + "');");target.addComponent(testLabel);}
Is this a bug or is there something I am missing?-MT--View this message in context: http://www.nabble.com/Using-_javascript_-Effects-Before-An-Ajax-Call-tf2632663.html#a7347878
Sent from the Wicket - User mailing list archive at Nabble.com.-Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Using Javascript Effects Before An Ajax Call

2006-11-14 Thread cygnusx2112


I am using the AjaxRequestTarget.prependJavaScript method to apply an Effect
to an element before it gets replaced by the Ajax call. The problem is that
the Ajax replacement occurs before the animation code for the effect has a
chance to complete, making the effect unnoticable. My event handler code
looks like this:

protected void onEvent(final AjaxRequestTarget target)
{
testLabel.setModelObject("New Label Text");
target.prependJavascript("new Effect.BlindUp('" +
testLabel.getMarkupId() + "');");
target.addComponent(testLabel);
}

Is this a bug or is there something I am missing?

-MT
-- 
View this message in context: 
http://www.nabble.com/Using-Javascript-Effects-Before-An-Ajax-Call-tf2632663.html#a7347878
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Header contribution not always rendered

2006-11-14 Thread Maurice Marrink
Ok

I just finished a simple quickstart showing the problem.
you can get it here https://issues.apache.org/jira/browse/WICKET-68.

Maurice

On 11/14/06, Maurice Marrink <[EMAIL PROTECTED]> wrote:
> Its not just pages, i have a panel that adds some javascript to the
> header which suffers from this problem.
>
> Matej, ill see if i can put something together.
>
> Maurice
>
> On 11/13/06, Matej Knopp <[EMAIL PROTECTED]> wrote:
> > I've tested this with current 1.3 and couldn't reproduce this. Can you
> > please provide a quick-start project? I'd be more than happy to look
> > into it.
> >
> > -Matej
> >
> > Maurice Marrink wrote:
> > > I am using wicket:1.3-incubating-20061113.111007-1 and also have this
> > > problem with javascript not being rendered the second time.
> > > I render a new page and all is rendered fine. i click on a link to
> > > open a new page. there i click on a link that brings me back to the
> > > previous page instance. The javascript in the header is missing the
> > > second time.
> > >
> > > Anybody have a solution yet?
> > >
> > > Maurice
> > >
> > > On 11/10/06, Matej Knopp <[EMAIL PROTECTED]> wrote:
> > >> That's weird. Which wicket version are you using? Seems that Wicket 1.x
> > >> has already become 1.3 and the latest revision is 473519.
> > >>
> > >> Wicket 1.2 has it's own branch now.
> > >>
> > >> Are you sure you're using the apache repository?
> > >>
> > >> -Matej
> > >>
> > >> Erik van Oosten wrote:
> > >>> Hello,
> > >>>
> > >>> Something is going wrong with my header contributions. A css that was
> > >>> added like this
> > >>> add(HeaderContributor.forCss(MyPage.class, "MyPage.css"));
> > >>> are only rendered once and then never again.
> > >>>
> > >>> To be precise:
> > >>> - I start jetty.
> > >>> - I request the page (it is bookmarkable).
> > >>> - I get redirected to the signin page, I log in.
> > >>> - The page is displayed correct (with the css).
> > >>> - I press reload and the css is gone. The link is actually not in the
> > >>> header.
> > >>> - Press reload another 50 times, no more css.
> > >>>
> > >>> I have also seen another scenario: the first time the page is rendered
> > >>> it misses the css, the second time it is present and in all following
> > >>> renderings it is gone.
> > >>> All css added with wicket:head/wicket:link elements renders fine.
> > >>>
> > >>> I am using Wicket 1.x, revision 470570 (at moment of writing the latest
> > >>> revision of 1.x).
> > >>>
> > >>> Any ideas on what it is going on here?
> > >>>
> > >>> Regards,
> > >>>  Erik.
> > >>>
> > >>>
> > >>>
> > >>
> > >> -
> > >> Using Tomcat but need to do more? Need to support web services, security?
> > >> Get stuff done quickly with pre-integrated technology to make your job 
> > >> easier
> > >> Download IBM WebSphere Application Server v.1.0.1 based on Apache 
> > >> Geronimo
> > >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > >> ___
> > >> Wicket-user mailing list
> > >> Wicket-user@lists.sourceforge.net
> > >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >>
> > >
> > > -
> > > Using Tomcat but need to do more? Need to support web services, security?
> > > Get stuff done quickly with pre-integrated technology to make your job 
> > > easier
> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> >
> > -
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job 
> > easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Validation without form submit...

2006-11-14 Thread Igor Vaynberg
just rename the .zip into .iamzip :)-igorOn 11/14/06, Erik Brakkee <[EMAIL PROTECTED]> wrote:
On 11/13/06, Igor Vaynberg <[EMAIL PROTECTED]
> wrote:> why dont you create a quickstart so one of the devs can walk the code and> see what is going on(second try, the mailing list does not like zip files)And,  I have... .
Take the wicket 1.2.2 quickstart application and unzip the archiveinto that directory. The main page  (Index) contains a feedback panel,a link to the Other page and an info message showing a counter. Thecounter is incremented every time the Index page is rendered and
info() is used to display the counter on the page.Now, try this:* start the application: -> Info message is shown with counter is 0* click on the link, now click on 'Return to previous page'-> No info
message is hown* refresh the page by clicking the browser's refresh button -> infomessage is shown with counter is 2This shows that the info message which is generated in the onAttach()method somehow disappears. It is only rendered when the page is
refreshed but not when you return to the page by an explicitsetResponsePage() call.Cheers  ErikSince sourceforge does not allow zip extensions in a fruitless attemptto protect Microsoft windows users, here are the files: 
Index.java,Index.html, Other.java, and Other.html.Index.java:package wicket.quickstart;import wicket.Page;import wicket.markup.html.WebPage;import wicket.markup.html.link.Link;public class Other extends WebPage {
public Other(final Page aReturnPage) {add(new Link("link") {@Overridepublic void onClick() {setResponsePage(aReturnPage);
}});}}Index.html:QuickStart
QuickStartThis is your first Wicket application.Feedback goes here Click me!
Other.java:package wicket.quickstart;import wicket.Page;import wicket.markup.html.WebPage;import wicket.markup.html.link.Link;public class Other extends WebPage {
public Other(final Page aReturnPage) {add(new Link("link") {@Overridepublic void onClick() {setResponsePage(aReturnPage);
}});}}Other.html:QuickStart
Return to previous page>> -igor>> On 11/13/06, Erik Brakkee <
[EMAIL PROTECTED]> wrote:> >> > If I understand correctly, this explains the problem but does not> > solve it. Anyway, I have a simple workaround to display the message as
> > a Label or some other component, overriding getModel() to return the> > appropriate information. That way I am certain that I am seeing the> > correct results.> >> > All it needs to do is display the total number of errors and warnings
> > with detailed information being on the page. The page offers links to> > the user to correct problems and upon returning to the page the total> > number of errors and warnings should be updated. In this case I really
> > want to return to the same page instance because I want the user to> > see exactly the same information that he saw before he started> > correcting a problem.> >> > Nevertheless, it would be nice if it would be allowed to use info(),
> > warn(), and error() also in other parts of the lifecycle such as> > onAttach() or onBeforeRender(). Without this, it is impossible to> > ensure that the correct messages are shown when a user returns to the
> > same page instance. Requiring a new page instance to show the correct> > messages  is a bit restrictive.> >> > On 11/9/06, Eelco Hillenius <
[EMAIL PROTECTED]> wrote:> > > These methods were introduce specially for situations where you have> > > to render messages at some other page than the current. The messages> > > are deleted right after they are rendered. Try it, I think it solves
> > > your problem.> > >> > > Eelco> > >> > >> > > On 11/9/06, Erik Brakkee <[EMAIL PROTECTED]
> wrote:> > > > No I didn't because the scope of the messages is of the page only.> > What> > > > would be the correct point in the lifecycle of the page to use warn(),> > > > info(), or error()? Apparently I am too early in invoking these
> > methods.> > > >> > > >> > > > On 11/8/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:> > > > >
> > > > > Did you try info/warn/error on Session?> > > > >> > > > > Eelco> > > > >> > > > >> > > > > On 11/8/06, Erik Brakkee <
[EMAIL PROTECTED]> wrote:> > > > > > Hi,> > > > > >> > > > > >> > > > > > I am still stuck with this problem. What I try to do is to use
> > info(),> > > > > > error(), and warn() to add messages to the page, and I want to do> > this> > > > > > as soon as another page returns to my page using
> > > > > > setResponsePage(pageObject). Somehow, the messages I set in> > onAttach()> > > > > > or> > > > > > onBeforeRender are lost.> > > > > >
> > > > > > Anyone have any ideas 

Re: [Wicket-user] Multi-portlet app?

2006-11-14 Thread Gustavo Hexsel
  Hm, I don't yet fully understand the framework, yet what seems to be
happening is that when the page is generated, each portlet is rendered
once.  Same happens when I submit the form in one of the portlets.
However, when I submit a form on one, then after a refresh submit the
other, I get 3 rendering phases, 2 for the portlet that was last
clicked.

  I'm trying to generate a simple test case to illustrate this.

 []s Gus



On 11/14/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> janne is the portlet guy, are you reading with us?
>
> -igor
>
>
>
> On 11/14/06, Gustavo Hexsel <[EMAIL PROTECTED] > wrote:
> >
> > Actually, this doesn't seem to work at all.  When I put 2 portlets
> > (just copied & pasted from the Wicket example, and changed the
> > wicket:ids so they wouldn't conflict), the second one is expired
> > whenever I click on anything on it.  Any hints on what I should be
> > trying to improve in Wicket or the example for this?
> >
> > []s Gus
> >
> >
> >
> > On 11/13/06, Gustavo Hexsel <[EMAIL PROTECTED]> wrote:
> > >   Hi folks,
> > >
> > >   I was taking a look at Wicket's support for Portlets, and after a
> > > bit of a struggle (mostly caused by Liferay, Ubuntu, MySQL and
> > > Tomcat), I got the examples working.
> > >
> > >   Then I got curious and tried to set the app to have 2 portlets that
> > > communicate, but I'm a little lost.  Is it even possible?  The
> > > javadocs seem to indicate that there should be one "application" per
> > >  declaration, which seems conceptually wrong to me (should be
> > > one Portlet instead).  Each PortletApplication seems to be a factory
> > > for a session.  Will they both get called?  Any recommended way of
> > > sharing the session for communication purposes?
> > >
> > >   Hm... Guess I'll try that and post the results in case someone else
> > > is curious. :)
> > >
> > > []s Gus
> > >
> >
> >
> -
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job
> easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> -
> SF.net email is sponsored by: A Better Job is Waiting for You - Find it Now.
> Check out Slashdot's new job board. Browse through tons of technical jobs
> posted by companies looking to hire people just like you.
> http://jobs.slashdot.org/
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxTabbedPanel with notification on tab change

2006-11-14 Thread Marc-Andre Houle
Thanks for the answer.  The link you give me was exactly the kind of thing I was searching for.  I'll probably need to update the _javascript_ so it will not grab window.onload and window.onbeforeunload but the wicket event.
Any idea how I can grab these in _javascript_?Would it be something like this : Wicket.Ajax.registerPreCallHandler(function() { document.getElementById("main").style.cursor='progress'; });
Because since we already use it, there would be thing to change to overwrite it.Thanks in advance for the help.MarcOn 11/14/06, Marc-Andre Houle
 <[EMAIL PROTECTED]> wrote:Thanks a lot.  It look exactly like what I was expecting.
MarcOn 11/14/06, Matej Knopp <
[EMAIL PROTECTED]> wrote:
Hi.you will have to override newLink() method of AjaxTabbedPanel to modify

the link. Also this could help youhttp://jroller.com/page/karthikg?entry=modelling_client_side_form_modifications
It's about doing a behavior for detecting client form changes.
-MatejMarc-Andre Houle wrote:> Hello all.>> I got a challenge to resolve for our application to work how we want it> to.  We got a An AjaxTabbedPanel containing different Form to edit some
> preference.  The problem is, when the user is in edit mode, he can> modify thing.  The problem is, when the user modify something without> saving it, we want to be able to notify the user something have changed
> and have not been save.  then he can save or simply don't, but it is is> choice.>> What would be available solution ?> Save on change of the form is not a correct solution and there seem's to
> be no way of adding this kind of thing directly to the AjaxTabbedPanel.>> Thanks in advance.>> Marc>>> 
>> -> SF.net email is sponsored by: A Better Job is Waiting for You - Find it Now.> Check out Slashdot's new job board. Browse through tons of technical jobs
> posted by companies looking to hire people just like you.> http://jobs.slashdot.org/>
>> 
>> ___> Wicket-user mailing list> 
Wicket-user@lists.sourceforge.net> 
https://lists.sourceforge.net/lists/listinfo/wicket-user-SF.net email is sponsored by: A Better Job is Waiting for You - Find it Now.
Check out Slashdot's new job board. Browse through tons of technical jobsposted by companies looking to hire people just like you.
http://jobs.slashdot.org/___
Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] edit xhtml Wicket files in Eclipse?

2006-11-14 Thread Potje rode kool
yes, sorry forgot to tell. I tried Amateras and XMLBuddy. I want to have xml validation code completion by using the Wicket dtd if posible.Wasn't able to get that working yet.Thanks.Evert
2006/11/13, Charlie Dobbie <[EMAIL PROTECTED]>:
You don't say what HTML editor you're using.If you're using the Amateras editor, you just need to disable validation:- Right-click your project, select Properties- Browse to the Amateras tab- Uncheck "XML Validation and Code Completion using DTD/XML schema"
and "HTML Validation"--CharlieOn 11/12/06, Potje rode kool <[EMAIL PROTECTED]> wrote:> I want to use xhtml with Wicket but fail to let it work correctly, that the
> editor finds the tags from the wicket dtd.> I am using Eclipse as IDE to develop. Any one who has an idea or experience> with this?>> Thanks-
Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

-
SF.net email is sponsored by: A Better Job is Waiting for You - Find it Now.
Check out Slashdot's new job board. Browse through tons of technical jobs
posted by companies looking to hire people just like you.
http://jobs.slashdot.org/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxTabbedPanel with notification on tab change

2006-11-14 Thread Marc-Andre Houle
Thanks a lot.  It look exactly like what I was expecting.MarcOn 11/14/06, Matej Knopp <[EMAIL PROTECTED]> wrote:
Hi.you will have to override newLink() method of AjaxTabbedPanel to modify
the link. Also this could help youhttp://jroller.com/page/karthikg?entry=modelling_client_side_form_modificationsIt's about doing a behavior for detecting client form changes.
-MatejMarc-Andre Houle wrote:> Hello all.>> I got a challenge to resolve for our application to work how we want it> to.  We got a An AjaxTabbedPanel containing different Form to edit some
> preference.  The problem is, when the user is in edit mode, he can> modify thing.  The problem is, when the user modify something without> saving it, we want to be able to notify the user something have changed
> and have not been save.  then he can save or simply don't, but it is is> choice.>> What would be available solution ?> Save on change of the form is not a correct solution and there seem's to
> be no way of adding this kind of thing directly to the AjaxTabbedPanel.>> Thanks in advance.>> Marc>>> 
>> -> SF.net email is sponsored by: A Better Job is Waiting for You - Find it Now.> Check out Slashdot's new job board. Browse through tons of technical jobs
> posted by companies looking to hire people just like you.> http://jobs.slashdot.org/>>> 
>> ___> Wicket-user mailing list> Wicket-user@lists.sourceforge.net> 
https://lists.sourceforge.net/lists/listinfo/wicket-user-SF.net email is sponsored by: A Better Job is Waiting for You - Find it Now.
Check out Slashdot's new job board. Browse through tons of technical jobsposted by companies looking to hire people just like you.http://jobs.slashdot.org/___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

-
SF.net email is sponsored by: A Better Job is Waiting for You - Find it Now.
Check out Slashdot's new job board. Browse through tons of technical jobs
posted by companies looking to hire people just like you.
http://jobs.slashdot.org/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ListView and setRenderBodyOnly

2006-11-14 Thread Igor Vaynberg
override newitem() :)-igorOn 11/14/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
ok fine by me by not doing that.it was just an idea. But maybe it would be nice to configure the listview once and list items inherit it (which property it is :)) 
johan
On 11/14/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:

On 11/14/06, Erik van Oosten <

[EMAIL PROTECTED]> wrote:
Thanks Ingram.I can not find it on the Wiki. It is also not included in the ListViewjavadoc. I could have searched the maillists, sorry.Johan Compagner wrote:> this is asked more.> Maybe we can set it through on all the items we create?
> Or can that be confusing in other situations?I think that would a good idea. I can not imagine a situation where this
would be confusing.we have to be very careful here. once we do this we are opening a pandoras box. what about behaviors? should those be added to items as well? what about other flags and properties?
 I had to think hard for at least 30 seconds before I understood the
solution. The point is that ListView does not correspond to any markup,
only the ListItems do.yes and i send an email out that says this exact thing at least once a week. it is something you hve to "get" but once you do its done.
 -igor
Regards,  Erik.--Erik van Oosten


http://www.day-to-day-stuff.blogspot.com/-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo

http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wicket-user

-SF.net email is sponsored by: A Better Job is Waiting for You - Find it Now.Check out Slashdot's new job board. Browse through tons of technical jobs
posted by companies looking to hire people just like you.http://jobs.slashdot.org/___
Wicket-user mailing listWicket-user@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wicket-user

-SF.net email is sponsored by: A Better Job is Waiting for You - Find it Now.Check out Slashdot's new job board. Browse through tons of technical jobs
posted by companies looking to hire people just like you.http://jobs.slashdot.org/___
Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-
SF.net email is sponsored by: A Better Job is Waiting for You - Find it Now.
Check out Slashdot's new job board. Browse through tons of technical jobs
posted by companies looking to hire people just like you.
http://jobs.slashdot.org/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ListView and setRenderBodyOnly

2006-11-14 Thread Johan Compagner
ok fine by me by not doing that.it was just an idea. But maybe it would be nice to configure the listview once and list items inherit it (which property it is :)) johan
On 11/14/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
On 11/14/06, Erik van Oosten <
[EMAIL PROTECTED]> wrote:
Thanks Ingram.I can not find it on the Wiki. It is also not included in the ListViewjavadoc. I could have searched the maillists, sorry.Johan Compagner wrote:> this is asked more.> Maybe we can set it through on all the items we create?
> Or can that be confusing in other situations?I think that would a good idea. I can not imagine a situation where this
would be confusing.we have to be very careful here. once we do this we are opening a pandoras box. what about behaviors? should those be added to items as well? what about other flags and properties?
 I had to think hard for at least 30 seconds before I understood the
solution. The point is that ListView does not correspond to any markup,
only the ListItems do.yes and i send an email out that says this exact thing at least once a week. it is something you hve to "get" but once you do its done.
 -igor
Regards,  Erik.--Erik van Oosten

http://www.day-to-day-stuff.blogspot.com/-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wicket-user

-SF.net email is sponsored by: A Better Job is Waiting for You - Find it Now.Check out Slashdot's new job board. Browse through tons of technical jobs
posted by companies looking to hire people just like you.http://jobs.slashdot.org/___
Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-
SF.net email is sponsored by: A Better Job is Waiting for You - Find it Now.
Check out Slashdot's new job board. Browse through tons of technical jobs
posted by companies looking to hire people just like you.
http://jobs.slashdot.org/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxTabbedPanel with notification on tab change

2006-11-14 Thread Matej Knopp
Hi.

you will have to override newLink() method of AjaxTabbedPanel to modify 
the link. Also this could help you
http://jroller.com/page/karthikg?entry=modelling_client_side_form_modifications

It's about doing a behavior for detecting client form changes.

-Matej

Marc-Andre Houle wrote:
> Hello all.
> 
> I got a challenge to resolve for our application to work how we want it 
> to.  We got a An AjaxTabbedPanel containing different Form to edit some 
> preference.  The problem is, when the user is in edit mode, he can 
> modify thing.  The problem is, when the user modify something without 
> saving it, we want to be able to notify the user something have changed 
> and have not been save.  then he can save or simply don't, but it is is 
> choice.
> 
> What would be available solution ?
> Save on change of the form is not a correct solution and there seem's to 
> be no way of adding this kind of thing directly to the AjaxTabbedPanel.
> 
> Thanks in advance.
> 
> Marc
> 
> 
> 
> 
> -
> SF.net email is sponsored by: A Better Job is Waiting for You - Find it Now.
> Check out Slashdot's new job board. Browse through tons of technical jobs
> posted by companies looking to hire people just like you.
> http://jobs.slashdot.org/
> 
> 
> 
> 
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user


-
SF.net email is sponsored by: A Better Job is Waiting for You - Find it Now.
Check out Slashdot's new job board. Browse through tons of technical jobs
posted by companies looking to hire people just like you.
http://jobs.slashdot.org/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Multi-portlet app?

2006-11-14 Thread Igor Vaynberg
janne is the portlet guy, are you reading with us?-igorOn 11/14/06, Gustavo Hexsel <[EMAIL PROTECTED]
> wrote:Actually, this doesn't seem to work at all.  When I put 2 portlets
(just copied & pasted from the Wicket example, and changed thewicket:ids so they wouldn't conflict), the second one is expiredwhenever I click on anything on it.  Any hints on what I should betrying to improve in Wicket or the example for this?
[]s GusOn 11/13/06, Gustavo Hexsel <[EMAIL PROTECTED]> wrote:>   Hi folks,>>   I was taking a look at Wicket's support for Portlets, and after a
> bit of a struggle (mostly caused by Liferay, Ubuntu, MySQL and> Tomcat), I got the examples working.>>   Then I got curious and tried to set the app to have 2 portlets that> communicate, but I'm a little lost.  Is it even possible?  The
> javadocs seem to indicate that there should be one "application" per>  declaration, which seems conceptually wrong to me (should be> one Portlet instead).  Each PortletApplication seems to be a factory
> for a session.  Will they both get called?  Any recommended way of> sharing the session for communication purposes?>>   Hm... Guess I'll try that and post the results in case someone else
> is curious. :)>> []s Gus>-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-
SF.net email is sponsored by: A Better Job is Waiting for You - Find it Now.
Check out Slashdot's new job board. Browse through tons of technical jobs
posted by companies looking to hire people just like you.
http://jobs.slashdot.org/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ListView and setRenderBodyOnly

2006-11-14 Thread Igor Vaynberg
On 11/14/06, Erik van Oosten <[EMAIL PROTECTED]> wrote:
Thanks Ingram.I can not find it on the Wiki. It is also not included in the ListViewjavadoc. I could have searched the maillists, sorry.Johan Compagner wrote:> this is asked more.> Maybe we can set it through on all the items we create?
> Or can that be confusing in other situations?I think that would a good idea. I can not imagine a situation where this
would be confusing.we have to be very careful here. once we do this we are opening a pandoras box. what about behaviors? should those be added to items as well? what about other flags and properties?
 I had to think hard for at least 30 seconds before I understood thesolution. The point is that ListView does not correspond to any markup,
only the ListItems do.yes and i send an email out that says this exact thing at least once a week. it is something you hve to "get" but once you do its done. -igor
Regards,  Erik.--Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-
SF.net email is sponsored by: A Better Job is Waiting for You - Find it Now.
Check out Slashdot's new job board. Browse through tons of technical jobs
posted by companies looking to hire people just like you.
http://jobs.slashdot.org/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] AjaxTabbedPanel with notification on tab change

2006-11-14 Thread Marc-Andre Houle
Hello all.I got a challenge to resolve for our application to work how we want it to.  We got a An AjaxTabbedPanel containing different Form to edit some preference.  The problem is, when the user is in edit mode, he can modify thing.  The problem is, when the user modify something without saving it, we want to be able to notify the user something have changed and have not been save.  then he can save or simply don't, but it is is choice.
What would be available solution ?Save on change of the form is not a correct solution and there seem's to be no way of adding this kind of thing directly to the AjaxTabbedPanel.Thanks in advance.
Marc
-
SF.net email is sponsored by: A Better Job is Waiting for You - Find it Now.
Check out Slashdot's new job board. Browse through tons of technical jobs
posted by companies looking to hire people just like you.
http://jobs.slashdot.org/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Betr.: Re: Betr.: Re: IFrame + PageMap

2006-11-14 Thread Johan Compagner
i will fix it today.On 11/14/06, Marieke Vandamme <[EMAIL PROTECTED]> wrote:

Oh, thanks a lot for helping me out.
Do I need to report this somewhere ?
(never done that before so...)
Marieke.






"Johan Compagner"
<[EMAIL PROTECTED]> 
Verzonden door: [EMAIL PROTECTED]

14/11/2006 15:19



Antwoord a.u.b. aan
wicket-user@lists.sourceforge.net





Aan
wicket-user@lists.sourceforge.net



Cc



Onderwerp
Re: [Wicket-user] Betr.:
Re: IFrame + PageMap








ahh
the meta stuff is not cleared! Thats a bug.

johan


On 11/14/06, Marieke Vandamme <[EMAIL PROTECTED]
> wrote:

The first time I set the src of the iframe, it doesn't happen indeed.


I tried to remove the pagemap, but with no luck. 

My code now looks like this : 
PageMap.forName("subpage").remove(); 
iFrame.add(new SimpleAttributeModifier("src", urlFor(PageMap.forName("subpage"),
SubPage.class, null))); 

When debugging 
public final void renderHead(final Response response)

in WebPage, "subpage" is still an entry of meta.pageMapNames...


 DISCLAIMER  
 http://www.tvh.be/newen/pages/emaildisclaimer.html 

"This message is delivered to all addressees subject to the conditions set forth in the attached disclaimer, which is an integral part of this message." 

-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Betr.: Re: Betr.: Re: IFrame + PageMap

2006-11-14 Thread Marieke Vandamme

Oh, thanks a lot for helping me out.
Do I need to report this somewhere ?
(never done that before so...)
Marieke.






"Johan Compagner"
<[EMAIL PROTECTED]> 
Verzonden door: [EMAIL PROTECTED]
14/11/2006 15:19



Antwoord a.u.b. aan
wicket-user@lists.sourceforge.net





Aan
wicket-user@lists.sourceforge.net


Cc



Onderwerp
Re: [Wicket-user] Betr.:
Re: IFrame + PageMap








ahh
the meta stuff is not cleared! Thats a bug.

johan


On 11/14/06, Marieke Vandamme <[EMAIL PROTECTED]
> wrote:

The first time I set the src of the iframe, it doesn't happen indeed.


I tried to remove the pagemap, but with no luck. 

My code now looks like this : 
PageMap.forName("subpage").remove(); 
iFrame.add(new SimpleAttributeModifier("src", urlFor(PageMap.forName("subpage"),
SubPage.class, null))); 

When debugging 
public final void renderHead(final Response response)

in WebPage, "subpage" is still an entry of meta.pageMapNames...


 DISCLAIMER  
 http://www.tvh.be/newen/pages/emaildisclaimer.html 

"This message is delivered to all addressees subject to the conditions set forth in the attached disclaimer, which is an integral part of this message." 
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Multi-portlet app?

2006-11-14 Thread Gustavo Hexsel
Actually, this doesn't seem to work at all.  When I put 2 portlets
(just copied & pasted from the Wicket example, and changed the
wicket:ids so they wouldn't conflict), the second one is expired
whenever I click on anything on it.  Any hints on what I should be
trying to improve in Wicket or the example for this?

[]s Gus



On 11/13/06, Gustavo Hexsel <[EMAIL PROTECTED]> wrote:
>   Hi folks,
>
>   I was taking a look at Wicket's support for Portlets, and after a
> bit of a struggle (mostly caused by Liferay, Ubuntu, MySQL and
> Tomcat), I got the examples working.
>
>   Then I got curious and tried to set the app to have 2 portlets that
> communicate, but I'm a little lost.  Is it even possible?  The
> javadocs seem to indicate that there should be one "application" per
>  declaration, which seems conceptually wrong to me (should be
> one Portlet instead).  Each PortletApplication seems to be a factory
> for a session.  Will they both get called?  Any recommended way of
> sharing the session for communication purposes?
>
>   Hm... Guess I'll try that and post the results in case someone else
> is curious. :)
>
> []s Gus
>

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Betr.: Re: IFrame + PageMap

2006-11-14 Thread Johan Compagner
ahhthe meta stuff is not cleared! Thats a bug.johanOn 11/14/06, Marieke Vandamme <[EMAIL PROTECTED]
> wrote:
The first time I set the src of the
iframe, it doesn't happen indeed.

I tried to remove the pagemap, but with
no luck.

My code now looks like this :
PageMap.forName("subpage").remove();
iFrame.add(new SimpleAttributeModifier("src",
urlFor(PageMap.forName("subpage"), SubPage.class, null)));

When debugging 
public final void renderHead(final Response
response)
in WebPage, "subpage" is still
an entry of meta.pageMapNames...






"Johan Compagner"
<[EMAIL PROTECTED]> 
Verzonden door: [EMAIL PROTECTED]

14/11/2006 13:50



Antwoord a.u.b. aan
wicket-user@lists.sourceforge.net





Aan
wicket-user@lists.sourceforge.net



Cc



Onderwerp
Re: [Wicket-user] IFrame
+ PageMap








Does it really happen the first time you open that iframe?
(i mean really the very first time)

if it then goes fine then you could do this right before: 

iFrame.add(new SimpleAttributeModifier("src", urlFor(PageMap.forName("subpage"),
SubPage.class, null))); 

do this:

PageMap.forName("subpage").remove();

So make sure there is no old subpage pagemap hanging around.

johan


On 11/14/06, Marieke Vandamme <[EMAIL PROTECTED]
>
wrote:

Hello, 

I'm having difficulties using iframe inside a webpage, as the destination
page of my iframe is loaded twice. 

Example code: 

MainPage.html 
 
   

 



MainPage.java 
private WebMarkupContainer iFrame = null; 
public MainPage() { 
  iFrame = new WebMarkupContainer("iFrame");

  iFrame.setOutputMarkupId(true); 
  add(iFrame); 
  
  Form webForm = new Form("webForm");

  webForm.add(new AjaxSubmitButton("btnSubmit", webForm){

    protected void onSubmit(AjaxRequestTarget target, Form form)
{ 
      iFrame.add(new SimpleAttributeModifier("src",
urlFor(PageMap.forName("subpage"), SubPage.class, null)));

      target.addComponent(iFrame); 
    } 
  }); 
  add(webForm); 
} 

There will be two SubPage-instances created with different pagemap (first
time "subpage", second time "wicket-0").

When looking into this, I saw in the wicket.markup.html.WebPage, that the
location is set again with different pagemap. 

I tried also 2 other options : 

1. Set the pagemap in the constructor of the SubPage : super(PageMap.forName("subpage"));


2. Use wicket.markup.html.link.InlineFrame instead of WebMarkupContainer.
With this last one, I'm not sure I implemented it right. 
    iFrame = new InlineFrame("iFrame", PageMap.forName("subpage"),
SubPage.class); 
    // I want an empty iframe the first time

    iFrame.add(new SimpleAttributeModifier("src", ""));

    iFrame = new WebMarkupContainer("iFrame");

    iFrame.setOutputMarkupId(true); 
    add(iFrame); 
    
    Form webForm = new ... 

When testing all the above, sometimes I ran into a neverending cycle, because
the window.location is set everytime. 

What is the solution? I know that using no iframes is the best one, but
I have a searchbox + underneath my results. 
Only the results may be scrollable, so the searchbox is always visible.


Thanks in advance ! 


 DISCLAIMER  
http://www.tvh.be/newen/pages/emaildisclaimer.html


"This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this
message." 

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier 
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___

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


-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Betr.: Re: IFrame + PageMap

2006-11-14 Thread Erik van Oosten
Hello,

Did you already try to set the src attribute to "about:blank" the first 
time? This works in IE and FireFox, not sure about other browsers.
Alternatively, you can create a special page that is empty.

 Erik.


Marieke Vandamme schreef:
>
> The first time I set the src of the iframe, it doesn't happen indeed.
>
> I tried to remove the pagemap, but with no luck.
>
> My code now looks like this :
> PageMap.forName("subpage").remove();
> iFrame.add(new SimpleAttributeModifier("src", 
> urlFor(PageMap.forName("subpage"), SubPage.class, null)));
>
> When debugging
> public final void renderHead(final Response response)
> in WebPage, "subpage" is still an entry of meta.pageMapNames...
>

-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Betr.: Re: IFrame + PageMap

2006-11-14 Thread Marieke Vandamme

The first time I set the src of the
iframe, it doesn't happen indeed.

I tried to remove the pagemap, but with
no luck.

My code now looks like this :
PageMap.forName("subpage").remove();
iFrame.add(new SimpleAttributeModifier("src",
urlFor(PageMap.forName("subpage"), SubPage.class, null)));

When debugging 
public final void renderHead(final Response
response)
in WebPage, "subpage" is still
an entry of meta.pageMapNames...






"Johan Compagner"
<[EMAIL PROTECTED]> 
Verzonden door: [EMAIL PROTECTED]
14/11/2006 13:50



Antwoord a.u.b. aan
wicket-user@lists.sourceforge.net





Aan
wicket-user@lists.sourceforge.net


Cc



Onderwerp
Re: [Wicket-user] IFrame
+ PageMap








Does it really happen the first time you open that iframe?
(i mean really the very first time)

if it then goes fine then you could do this right before: 

iFrame.add(new SimpleAttributeModifier("src", urlFor(PageMap.forName("subpage"),
SubPage.class, null))); 

do this:

PageMap.forName("subpage").remove();

So make sure there is no old subpage pagemap hanging around.

johan


On 11/14/06, Marieke Vandamme <[EMAIL PROTECTED]>
wrote:

Hello, 

I'm having difficulties using iframe inside a webpage, as the destination
page of my iframe is loaded twice. 

Example code: 

MainPage.html 
 
   

 



MainPage.java 
private WebMarkupContainer iFrame = null; 
public MainPage() { 
  iFrame = new WebMarkupContainer("iFrame");

  iFrame.setOutputMarkupId(true); 
  add(iFrame); 
  
  Form webForm = new Form("webForm");

  webForm.add(new AjaxSubmitButton("btnSubmit", webForm){

    protected void onSubmit(AjaxRequestTarget target, Form form)
{ 
      iFrame.add(new SimpleAttributeModifier("src",
urlFor(PageMap.forName("subpage"), SubPage.class, null)));

      target.addComponent(iFrame); 
    } 
  }); 
  add(webForm); 
} 

There will be two SubPage-instances created with different pagemap (first
time "subpage", second time "wicket-0").

When looking into this, I saw in the wicket.markup.html.WebPage, that the
location is set again with different pagemap. 

I tried also 2 other options : 

1. Set the pagemap in the constructor of the SubPage : super(PageMap.forName("subpage"));


2. Use wicket.markup.html.link.InlineFrame instead of WebMarkupContainer.
With this last one, I'm not sure I implemented it right. 
    iFrame = new InlineFrame("iFrame", PageMap.forName("subpage"),
SubPage.class); 
    // I want an empty iframe the first time

    iFrame.add(new SimpleAttributeModifier("src", ""));

    iFrame = new WebMarkupContainer("iFrame");

    iFrame.setOutputMarkupId(true); 
    add(iFrame); 
    
    Form webForm = new ... 

When testing all the above, sometimes I ran into a neverending cycle, because
the window.location is set everytime. 

What is the solution? I know that using no iframes is the best one, but
I have a searchbox + underneath my results. 
Only the results may be scrollable, so the searchbox is always visible.


Thanks in advance ! 


 DISCLAIMER  
http://www.tvh.be/newen/pages/emaildisclaimer.html


"This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this
message." 

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier 
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

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



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Validation without form submit...

2006-11-14 Thread Erik Brakkee
On 11/13/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> why dont you create a quickstart so one of the devs can walk the code and
> see what is going on

(second try, the mailing list does not like zip files)

And,  I have... .

Take the wicket 1.2.2 quickstart application and unzip the archive
into that directory. The main page  (Index) contains a feedback panel,
a link to the Other page and an info message showing a counter. The
counter is incremented every time the Index page is rendered and
info() is used to display the counter on the page.

Now, try this:
* start the application: -> Info message is shown with counter is 0
* click on the link, now click on 'Return to previous page'-> No info
message is hown
* refresh the page by clicking the browser's refresh button -> info
message is shown with counter is 2

This shows that the info message which is generated in the onAttach()
method somehow disappears. It is only rendered when the page is
refreshed but not when you return to the page by an explicit
setResponsePage() call.

Cheers
  Erik

Since sourceforge does not allow zip extensions in a fruitless attempt
to protect Microsoft windows users, here are the files: Index.java,
Index.html, Other.java, and Other.html.

Index.java:
package wicket.quickstart;


import wicket.Page;
import wicket.markup.html.WebPage;
import wicket.markup.html.link.Link;

public class Other extends WebPage {

public Other(final Page aReturnPage) {
add(new Link("link") {
@Override
public void onClick() {
setResponsePage(aReturnPage);   
}
});
}

}


Index.html:


QuickStart


QuickStart
This is your first Wicket application.

Feedback goes here 
Click me!





Other.java:
package wicket.quickstart;


import wicket.Page;
import wicket.markup.html.WebPage;
import wicket.markup.html.link.Link;

public class Other extends WebPage {

public Other(final Page aReturnPage) {
add(new Link("link") {
@Override
public void onClick() {
setResponsePage(aReturnPage);   
}
});
}

}


Other.html:


QuickStart



Return to previous page







>
> -igor
>
> On 11/13/06, Erik Brakkee <[EMAIL PROTECTED]> wrote:
> >
> > If I understand correctly, this explains the problem but does not
> > solve it. Anyway, I have a simple workaround to display the message as
> > a Label or some other component, overriding getModel() to return the
> > appropriate information. That way I am certain that I am seeing the
> > correct results.
> >
> > All it needs to do is display the total number of errors and warnings
> > with detailed information being on the page. The page offers links to
> > the user to correct problems and upon returning to the page the total
> > number of errors and warnings should be updated. In this case I really
> > want to return to the same page instance because I want the user to
> > see exactly the same information that he saw before he started
> > correcting a problem.
> >
> > Nevertheless, it would be nice if it would be allowed to use info(),
> > warn(), and error() also in other parts of the lifecycle such as
> > onAttach() or onBeforeRender(). Without this, it is impossible to
> > ensure that the correct messages are shown when a user returns to the
> > same page instance. Requiring a new page instance to show the correct
> > messages  is a bit restrictive.
> >
> > On 11/9/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > > These methods were introduce specially for situations where you have
> > > to render messages at some other page than the current. The messages
> > > are deleted right after they are rendered. Try it, I think it solves
> > > your problem.
> > >
> > > Eelco
> > >
> > >
> > > On 11/9/06, Erik Brakkee <[EMAIL PROTECTED]> wrote:
> > > > No I didn't because the scope of the messages is of the page only.
> > What
> > > > would be the correct point in the lifecycle of the page to use warn(),
> > > > info(), or error()? Apparently I am too early in invoking these
> > methods.
> > > >
> > > >
> > > > On 11/8/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Did you try info/warn/error on Session?
> > > > >
> > > > > Eelco
> > > > >
> > > > >
> > > > > On 11/8/06, Erik Brakkee <[EMAIL PROTECTED]> wrote:
> > > > > > Hi,
> > > > > >
> > > > > >
> > > > > > I am still stuck with this problem. What I try to do is to use
> > info(),
> > > > > > error(), and warn() to add messages to the page, and I want to do
> > this
> > > > > > as soon as another page returns to my page using
> > > > > > setResponsePage(pageObject). Somehow, the messages I set in
> > onAttach()
> > > > > 

[Wicket-user] Betr.: Re: IFrame + PageMap

2006-11-14 Thread Marieke Vandamme

Hello,

Thx for the reply. I thought about that
first, but i need to take all the space i can use (width:100%; height:100%)
and the "overflow:scroll;"
option isn't working then (at least not in all browsers, Firfox doesn't
support it).

Marieke.






Erik van Oosten <[EMAIL PROTECTED]>

Verzonden door: [EMAIL PROTECTED]
14/11/2006 13:44



Antwoord a.u.b. aan
wicket-user@lists.sourceforge.net





Aan
wicket-user@lists.sourceforge.net


Cc



Onderwerp
Re: [Wicket-user] IFrame
+ PageMap








Hello Marieke,

I can not help you with the IFrame problem, but you can also use a div

with the following style:
  width: ...;
  height:...;
  overflow: scroll;

    Erik.


Marieke Vandamme wrote:
> What is the solution? I know that using no iframes is the best one,

> but I have a searchbox + underneath my results.
> Only the results may be scrollable, so the searchbox is always visible.
>

-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



 DISCLAIMER  
 http://www.tvh.be/newen/pages/emaildisclaimer.html 

"This message is delivered to all addressees subject to the conditions set forth in the attached disclaimer, which is an integral part of this message." 
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] IFrame + PageMap

2006-11-14 Thread Erik van Oosten
Hello Marieke,

I can not help you with the IFrame problem, but you can also use a div 
with the following style:
  width: ...;
  height:...;
  overflow: scroll;

Erik.


Marieke Vandamme wrote:
> What is the solution? I know that using no iframes is the best one, 
> but I have a searchbox + underneath my results.
> Only the results may be scrollable, so the searchbox is always visible.
>

-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] IFrame + PageMap

2006-11-14 Thread Johan Compagner
Does it really happen the first time you open that iframe?(i mean really the very first time)if it then goes fine then you could do this right before: iFrame.add(new
SimpleAttributeModifier("src", urlFor(PageMap.forName("subpage"),
SubPage.class, null)));
do this:PageMap.forName("subpage").remove();So make sure there is no old subpage pagemap hanging around.johan
On 11/14/06, Marieke Vandamme <[EMAIL PROTECTED]> wrote:

Hello,

I'm having difficulties using iframe
inside a webpage, as the destination page of my iframe is loaded twice.

Example code:

MainPage.html

   



MainPage.java
private WebMarkupContainer iFrame =
null;
public MainPage() {
  iFrame = new WebMarkupContainer("iFrame");
  iFrame.setOutputMarkupId(true);
  add(iFrame);
  
  Form webForm = new Form("webForm");
  webForm.add(new AjaxSubmitButton("btnSubmit",
webForm){
    protected void onSubmit(AjaxRequestTarget
target, Form form) {
      iFrame.add(new
SimpleAttributeModifier("src", urlFor(PageMap.forName("subpage"),
SubPage.class, null)));
      target.addComponent(iFrame);
    }
  });
  add(webForm);
}

There will be two SubPage-instances
created with different pagemap (first time "subpage", second
time "wicket-0").
When looking into this, I saw in the
wicket.markup.html.WebPage, that the location is set again with different
pagemap.

I tried also 2 other options :

1. Set the pagemap in the constructor
of the SubPage : super(PageMap.forName("subpage"));

2. Use wicket.markup.html.link.InlineFrame
instead of WebMarkupContainer. With this last one, I'm not sure I implemented
it right. 
    iFrame = new InlineFrame("iFrame",
PageMap.forName("subpage"), SubPage.class);
    // I want an empty iframe
the first time
    iFrame.add(new SimpleAttributeModifier("src",
""));
    iFrame = new WebMarkupContainer("iFrame");
    iFrame.setOutputMarkupId(true);
    add(iFrame);
    
    Form webForm = new ...

When testing all the above, sometimes
I ran into a neverending cycle, because the window.location is set everytime.

What is the solution? I know that using
no iframes is the best one, but I have a searchbox + underneath my results.

Only the results may be scrollable,
so the searchbox is always visible.

Thanks in advance !
 DISCLAIMER  
 http://www.tvh.be/newen/pages/emaildisclaimer.html 

"This message is delivered to all addressees subject to the conditions set forth in the attached disclaimer, which is an integral part of this message." 

-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Betr.: Re: Betr.: Re: IFrame + PageMap

2006-11-14 Thread Martijn Dashorst
Create an issue here (you might need to register first, which is free):

http://issues.apache.org/jira/browse/WICKET

Thanks,

Martijn

On 11/14/06, Marieke Vandamme <[EMAIL PROTECTED]> wrote:
>
> Oh, thanks a lot for helping me out.
> Do I need to report this somewhere ? (never done that before so...)
> Marieke.
>
>
>
>
>
>
> "Johan Compagner" <[EMAIL PROTECTED]>
> Verzonden door: [EMAIL PROTECTED]
>
> 14/11/2006 15:19
>
> Antwoord a.u.b. aan
>  wicket-user@lists.sourceforge.net
>
>
> Aan wicket-user@lists.sourceforge.net
>
> Cc
>
> Onderwerp Re: [Wicket-user] Betr.: Re: IFrame + PageMap
>
>
>
>
>
> ahh
>  the meta stuff is not cleared! Thats a bug.
>
>  johan
>
>
> On 11/14/06, Marieke Vandamme <[EMAIL PROTECTED] > wrote:
>
>  The first time I set the src of the iframe, it doesn't happen indeed.
>
>  I tried to remove the pagemap, but with no luck.
>
>  My code now looks like this :
>  PageMap.forName("subpage").remove();
>  iFrame.add(new SimpleAttributeModifier("src",
> urlFor(PageMap.forName("subpage"), SubPage.class, null)));
>
>  When debugging
>  public final void renderHead(final Response response)
>  in WebPage, "subpage" is still an entry of meta.pageMapNames...
>
>  DISCLAIMER 
>  http://www.tvh.be/newen/pages/emaildisclaimer.html
>
>  "This message is delivered to all addressees subject to the conditions set
> forth in the attached disclaimer, which is an integral part of this
> message."
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>


-- 
http://www.thebeststuffintheworld.com/vote_for/wicket";>Vote
for http://www.thebeststuffintheworld.com/stuff/wicket";>Wicket
at the http://www.thebeststuffintheworld.com/";>Best Stuff in
the World!

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] IFrame + PageMap

2006-11-14 Thread Marieke Vandamme

Hello,

I'm having difficulties using iframe
inside a webpage, as the destination page of my iframe is loaded twice.

Example code:

MainPage.html

   



MainPage.java
private WebMarkupContainer iFrame =
null;
public MainPage() {
  iFrame = new WebMarkupContainer("iFrame");
  iFrame.setOutputMarkupId(true);
  add(iFrame);
  
  Form webForm = new Form("webForm");
  webForm.add(new AjaxSubmitButton("btnSubmit",
webForm){
    protected void onSubmit(AjaxRequestTarget
target, Form form) {
      iFrame.add(new
SimpleAttributeModifier("src", urlFor(PageMap.forName("subpage"),
SubPage.class, null)));
      target.addComponent(iFrame);
    }
  });
  add(webForm);
}

There will be two SubPage-instances
created with different pagemap (first time "subpage", second
time "wicket-0").
When looking into this, I saw in the
wicket.markup.html.WebPage, that the location is set again with different
pagemap.

I tried also 2 other options :

1. Set the pagemap in the constructor
of the SubPage : super(PageMap.forName("subpage"));

2. Use wicket.markup.html.link.InlineFrame
instead of WebMarkupContainer. With this last one, I'm not sure I implemented
it right. 
    iFrame = new InlineFrame("iFrame",
PageMap.forName("subpage"), SubPage.class);
    // I want an empty iframe
the first time
    iFrame.add(new SimpleAttributeModifier("src",
""));
    iFrame = new WebMarkupContainer("iFrame");
    iFrame.setOutputMarkupId(true);
    add(iFrame);
    
    Form webForm = new ...

When testing all the above, sometimes
I ran into a neverending cycle, because the window.location is set everytime.

What is the solution? I know that using
no iframes is the best one, but I have a searchbox + underneath my results.

Only the results may be scrollable,
so the searchbox is always visible.

Thanks in advance !
 DISCLAIMER  
 http://www.tvh.be/newen/pages/emaildisclaimer.html 

"This message is delivered to all addressees subject to the conditions set forth in the attached disclaimer, which is an integral part of this message." 
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] getting started with examples-1.2.3

2006-11-14 Thread Ard Schrijvers
Hello,

I have checked out the examples (wicket-examples-1.2.3-bin.zip) yesterday, and 
seem to be having some serious hickups while clicking through the samples on 
localhost:8080 (up to 30 sec for a page, or an image..). Does anybody else had 
this problem as well, and knows what it might be? 

Profiling indicates that the app seems to be doing totally nothing, proxying 
indicates in only one request to wicket, which just seem to hang. 

Just heart from another person in the office, who had problems with hickups as 
well, that with Ubuntu, everything runs fine.

I am testing on windows, java 1.4.2_03. With Java 1.5 seems to have the same 
hickups. Could it be something with the jetty-6.0.1.jar??

Thx in advance,

Regards Ard

-- 

Hippo
Oosteinde 11
1017WT Amsterdam
The Netherlands
Tel  +31 (0)20 5224466
-
[EMAIL PROTECTED] / http://www.hippo.nl
-- 

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ListView and setRenderBodyOnly

2006-11-14 Thread Ingram Chen
FAQ.you should use item.setRenderBodyOnly(true) insteadOn 11/14/06, Erik van Oosten <[EMAIL PROTECTED]
> wrote:Hello,Is there a particular reason why ListView does not respect the
RenderBodyOnly flag?I have something like this:   
I want it to render as: item 1 item 2 item 3
 etc.Regards,Erik.--Erik van Oostenhttp://www.day-to-day-stuff.blogspot.com/-
Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://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
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ListView and setRenderBodyOnly

2006-11-14 Thread Erik van Oosten
Thanks Ingram.

I can not find it on the Wiki. It is also not included in the ListView 
javadoc. I could have searched the maillists, sorry.


Johan Compagner wrote:
> this is asked more.
> Maybe we can set it through on all the items we create?
> Or can that be confusing in other situations?
I think that would a good idea. I can not imagine a situation where this 
would be confusing.

I had to think hard for at least 30 seconds before I understood the 
solution. The point is that ListView does not correspond to any markup, 
only the ListItems do.

Regards,
  Erik.


-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket 1.2.1 and ModalDialog problem

2006-11-14 Thread Nili Adoram
replace the hard-coded window.open with window.showModalDialog or some 
other javascript method that determines the size and location of the 
popup relative to the opener.

Johan Compagner wrote:
> just curious why do you want to extend it? what do you need?
>
> johan
>
>
> On 11/14/06, *Nili Adoram* <[EMAIL PROTECTED] 
> > wrote:
>
> In version 1.2.2 is it still cumbersome to extend PopupSettings.
> all fields are private (windowName, top, left etc.) with no
> getters, as
> well as flagToString().
>
> -- Nili
>
> Eelco Hillenius wrote:
> >> I'm having trouble with porting this code into wicket. For the
> first
> >> time when one clicks the "..." button, modal dialog comes up.
> For the
> >> following clicks, IE opens up both a new window and the modal
> dialog
> >> with the same contents.
> >> With FF it works as expected.
> >>
> >> I suspect, it has something to do with pagemaps or versioning,
> but how
> >> could I know, I'm new to wicket world. Please, help me.
> >>
> >
> > Could you try with the latest Wicket version from branch wicket-1.x?
> > We just removed a redundant check for page maps that was a problem
> > with frames; that might be a problem here too.
> >
> >
> >> BTW, in order to make a different javascript code I copy-pasted
> entire
> >> content of PopupSettings and made a new getPopupSettings
> function. Is
> >> there other way around?
> >>
> >
> > Kind of the same, but you don't have to copy the whole class if you
> > extend. This:
> >
> >   PopupSettings popupSettings = new MyPopupSettings(
> PageMap.forName("popup")) {
> > public String getPopupJavaScript() {
> >   // return your custom javascript here
> > }
> >   }
> >
> > Eelco
> >
> >
> -
>
> > Using Tomcat but need to do more? Need to support web services,
> security?
> > Get stuff done quickly with pre-integrated technology to make
> your job easier
> > Download IBM WebSphere Application Server v.1.0.1 based on
> Apache Geronimo
> >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> 
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> 
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
>
> -
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> 
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> 
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
> 
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> 
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>   

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ListView and setRenderBodyOnly

2006-11-14 Thread Johan Compagner
this is asked more.Maybe we can set it through on all the items we create?Or can that be confusing in other situations?johanOn 11/14/06, 
Ingram Chen <[EMAIL PROTECTED]> wrote:
FAQ.you should use item.setRenderBodyOnly(true) insteadOn 11/14/06, Erik van Oosten <
[EMAIL PROTECTED]
> wrote:Hello,Is there a particular reason why ListView does not respect the
RenderBodyOnly flag?I have something like this:   
I want it to render as: item 1 item 2 item 3
 etc.Regards,Erik.--Erik van Oostenhttp://www.day-to-day-stuff.blogspot.com/
-
Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
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

-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket 1.2.1 and ModalDialog problem

2006-11-14 Thread Johan Compagner
just curious why do you want to extend it? what do you need?johanOn 11/14/06, Nili Adoram <[EMAIL PROTECTED]
> wrote:In version 1.2.2 is it still cumbersome to extend PopupSettings.all fields are private (windowName, top, left etc.) with no getters, as
well as flagToString().-- NiliEelco Hillenius wrote:>> I'm having trouble with porting this code into wicket. For the first>> time when one clicks the "..." button, modal dialog comes up. For the
>> following clicks, IE opens up both a new window and the modal dialog>> with the same contents.>> With FF it works as expected. I suspect, it has something to do with pagemaps or versioning, but how
>> could I know, I'm new to wicket world. Please, help me. Could you try with the latest Wicket version from branch wicket-1.x?> We just removed a redundant check for page maps that was a problem
> with frames; that might be a problem here too. BTW, in order to make a different _javascript_ code I copy-pasted entire>> content of PopupSettings and made a new getPopupSettings function. Is
>> there other way around? Kind of the same, but you don't have to copy the whole class if you> extend. This:>>   PopupSettings popupSettings = new MyPopupSettings(
PageMap.forName("popup")) {> public String getPopupJavaScript() {>   // return your custom _javascript_ here> }>   }>> Eelco>> -
> Using Tomcat but need to do more? Need to support web services, security?> Get stuff done quickly with pre-integrated technology to make your job easier> Download IBM WebSphere Application Server v.1.0.1
 based on Apache Geronimo> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___> Wicket-user mailing list> Wicket-user@lists.sourceforge.net> 
https://lists.sourceforge.net/lists/listinfo/wicket-user>>-Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] ListView and setRenderBodyOnly

2006-11-14 Thread Erik van Oosten
Hello,

Is there a particular reason why ListView does not respect the 
RenderBodyOnly flag?

I have something like this:
 
 
 

I want it to render as:
 item 1
 item 2
 item 3
 etc.


Regards,
Erik.

-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Header contribution not always rendered

2006-11-14 Thread Maurice Marrink
Its not just pages, i have a panel that adds some javascript to the
header which suffers from this problem.

Matej, ill see if i can put something together.

Maurice

On 11/13/06, Matej Knopp <[EMAIL PROTECTED]> wrote:
> I've tested this with current 1.3 and couldn't reproduce this. Can you
> please provide a quick-start project? I'd be more than happy to look
> into it.
>
> -Matej
>
> Maurice Marrink wrote:
> > I am using wicket:1.3-incubating-20061113.111007-1 and also have this
> > problem with javascript not being rendered the second time.
> > I render a new page and all is rendered fine. i click on a link to
> > open a new page. there i click on a link that brings me back to the
> > previous page instance. The javascript in the header is missing the
> > second time.
> >
> > Anybody have a solution yet?
> >
> > Maurice
> >
> > On 11/10/06, Matej Knopp <[EMAIL PROTECTED]> wrote:
> >> That's weird. Which wicket version are you using? Seems that Wicket 1.x
> >> has already become 1.3 and the latest revision is 473519.
> >>
> >> Wicket 1.2 has it's own branch now.
> >>
> >> Are you sure you're using the apache repository?
> >>
> >> -Matej
> >>
> >> Erik van Oosten wrote:
> >>> Hello,
> >>>
> >>> Something is going wrong with my header contributions. A css that was
> >>> added like this
> >>> add(HeaderContributor.forCss(MyPage.class, "MyPage.css"));
> >>> are only rendered once and then never again.
> >>>
> >>> To be precise:
> >>> - I start jetty.
> >>> - I request the page (it is bookmarkable).
> >>> - I get redirected to the signin page, I log in.
> >>> - The page is displayed correct (with the css).
> >>> - I press reload and the css is gone. The link is actually not in the
> >>> header.
> >>> - Press reload another 50 times, no more css.
> >>>
> >>> I have also seen another scenario: the first time the page is rendered
> >>> it misses the css, the second time it is present and in all following
> >>> renderings it is gone.
> >>> All css added with wicket:head/wicket:link elements renders fine.
> >>>
> >>> I am using Wicket 1.x, revision 470570 (at moment of writing the latest
> >>> revision of 1.x).
> >>>
> >>> Any ideas on what it is going on here?
> >>>
> >>> Regards,
> >>>  Erik.
> >>>
> >>>
> >>>
> >>
> >> -
> >> Using Tomcat but need to do more? Need to support web services, security?
> >> Get stuff done quickly with pre-integrated technology to make your job 
> >> easier
> >> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> >> ___
> >> Wicket-user mailing list
> >> Wicket-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> >>
> >
> > -
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job 
> > easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] CheckBox and GridView

2006-11-14 Thread Igor Vaynberg
well like i said, the gridview was working fine :)https://issues.apache.org/jira/browse/WICKET-64-igor
On 11/13/06, Ingram Chen <[EMAIL PROTECTED]> wrote:
ok, I change to:        ListDataProvider listDataProvider = new ListDataProvider(dataList) {            @Override            public IModel model(Object object) {                return new BackendEqualsThenModelEqualsModel(
                        (Serializable) object);            }        };        checkGroup.add(new GridView("checks", listDataProvider) {            @Override            protected void populateItem(Item item) {
                item.add(new Check("check", item.getModel()));            }            @Override            protected void populateEmptyItem(Item item) {                item.add(new Label("check"));
            }        }.setItemReuseStrategy(ReuseIfModelsEqualStrategy.getInstance()));still failed... attachement is quickstart.
On 11/14/06, 
Igor Vaynberg <[EMAIL PROTECTED]> wrote:

why are you overriding newItem ? the idataprovider implementation must return the correct model in its model(Object) method-igor
On 11/13/06, Ingram Chen
 <[EMAIL PROTECTED]> wrote:

I try to write a model which equals if beckendObject equals:
    private final class BackendEqualsThenModelEqualsModel extends Model {        private BackendEqualsThenModelEqualsModel(Serializable object) {
            super(object);        }        @Override        public boolean equals(Object obj) {            return getObject(null).equals(((IModel) obj).getObject(null));        }        @Override
        public int hashCode() {            return getObject(null).hashCode();        }    }and that GridView use this model:new GridView("checks", new ListDataProvider(dataList)) {
            @Override            protected Item newItem(String id, int index, IModel model) {                return super.newItem(id, index,                        new BackendEqualsThenModelEqualsModel(



                                (Serializable) model.getObject(null)));            }            @Override            protected void populateItem(Item item) {                item.add
(new Check("check", 
item.getModel()));            }            @Override            protected void populateEmptyItem(Item item) {                item.add(new Label("check"));            }
};It doesn't work... It must be something wrong somewhere. 
Could you give me correct implemetation ? Thanks!On 11/14/06, Igor Vaynberg <


[EMAIL PROTECTED]
> wrote:the rowitems do not matter, they hold no state. it is the cell items (individual squares in the grid) whose component hierarchy must be preserved, and it looks to me like it is because those are managed by the dataview.

are you sure you overrode equals and hashcode on the IModel not on the model objects?-igorOn 11/12/06, 
Ingram Chen <
[EMAIL PROTECTED]> wrote:Yes, I do try ReuseIfModelsEqualStrategybut... it does not work for me.  I dig into source code and found GridView internally use 
another RepeatingView for rows, and it doesn't utilize IItemReuseStrategy.
Maybe I just do wrong configuration...On 11/13/06, Igor Vaynberg <




[EMAIL PROTECTED]> wrote:
thats not true, see GridView.setItemReuseStrategy, IItemReuseStrategy, and ReuseIfModelsEqualStrategy
-igorOn 11/12/06, Ingram Chen <






[EMAIL PROTECTED]> wrote:This reminds me bad experiences with check + gridview sometime ago.
GridView does not support Item reuse. i.e. If any form validation error occur,user input are just disappeared. use with care!
On 11/9/06, Frank Bille <[EMAIL PROTECTED]






> wrote:
On 11/9/06, Flemming Seerup <[EMAIL PROTECTED]> wrote

public ThumbnailImageFragment(String id, final ImageReferencereference, IModelitemModel) {super(id);CheckBox checkBox = new CheckBox("select", itemModel);add(checkBox);
Try to use Check instead of CheckBox. I think that is your problem :)







http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/CheckGroup.html
Frank

-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo







http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list







Wicket-user@lists.sourceforge.nethttps://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

-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo






http://sel.as-u