[Wicket-user] How to attach thread

2007-03-14 Thread Thomas Küchenthal
Dear all,

within my Wicket application I'm using a self build process framework. I
klick on a wicket button and a process starts running in an own thread.
I want the process thread to take over the control of the wicket thread
to e.g. build the gui, or change the current model of a component etc...
(Actually I'm using the wizard component and want to combine/synchronize
my own process steps with the wizard steps)

But for now I receive this error message:

caused by: wicket.WicketRuntimeException: there is no session attached
to current thread Thread-51
at wicket.Session.get(Session.java:210)
at wicket.Page.dirty(Page.java:338)
at wicket.Page.componentStateChanging(Page.java:956)
at wicket.Component.addStateChange(Component.java:2347)



How can I attach the process thread to the wicket thread?

Thanks in advance

/thomas

-
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.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] MouseOver Effect on DataTable

2006-09-06 Thread Thomas Küchenthal
Dear all,

I have implemented a Page where I use the DefaultDataTable to display a
list of data. It is inspired by the Phonebook example and works perfect.
Now I have seen the cdapp example from wicket-contrib and I like the
mouse-over effect when I move the mouse over the table. How can I
implement such an effect in my Page?

Thanks in advance

/thomas

-
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] MouseOver Effect on DataTable

2006-09-06 Thread Thomas Küchenthal
Thank you for your help!!

I did it that way now:


public class MyDataTable extends DefaultDataTable
{

public MyDataTable(String id, List columns, SortableDataProvider
dataProvider, int rowsPerPage)
{
super(id, columns, dataProvider, rowsPerPage);
}

protected Item newRowItem(String id, int index, IModel model)
{
return new MyOddEvenElement(id, index, model);
}
}


public class MyOddEvenElement extends OddEvenItem
{
private String CLASS_EVEN = even;
private String CLASS_ODD = odd;
private String ON_MOUSE_OVER = this.className='litupRowOver';;
private String ON_MOUSE_OUT_ODD = this.className='odd';;
private String ON_MOUSE_OUT_EVEN = this.className='even';;

public MyOddEvenElement(String id, int index, IModel model)
{
super(id, index, model);
}
protected void onComponentTag(ComponentTag tag)
{
super.onComponentTag(tag);
tag.put(class, (getIndex() % 2 == 0) ? CLASS_EVEN :CLASS_ODD);
tag.put(onmouseover, ON_MOUSE_OVER);
tag.put(onmouseout, (getIndex() % 2 == 0) ? ON_MOUSE_OUT_EVEN :
ON_MOUSE_OUT_ODD);
}
}


What do you think? Is that a reasonable approach?


/thomas


Gwyn Evans wrote:
 The problem you've not addressed is how you set the different
 'onmouseout' functions in the repeater... I expect it can be done by
 extending the way that the OddEvenItem itself extends things, though.
 
 What I was thinking about was if there'd be a way of putting in a
 span or similar, such that the mouseovers could just do their set 
 clear, leaving the odd/even being set on the tr?  While I don't
 know, I've got the impression that I'd run into issues as to what tags
 would actually be allowed where I'd need them in order to do that...
 
 /Gwyn
 
 On 06/09/06, Erik van Oosten [EMAIL PROTECTED] wrote:
 The combination won't work.

 Try this for the even rows:

 tr wicket:id=results class=even
 onmouseover=this.className='litupRowOver';
 onmouseout=this.className='even';

 and for the odd rows:

 tr wicket:id=results class=odd
 onmouseover=this.className='litupRowOver';
 onmouseout=this.className='odd';

 I removed the class litupRow as it contains no style in your example. If
 you want to maintain it do this:

 tr wicket:id=results class=litupRow even
 onmouseover=this.className='litupRowOver';
 onmouseout=this.className='litupRow even';

 and for the odd rows:

 tr wicket:id=results class=litupRow odd
 onmouseover=this.className='litupRowOver';
 onmouseout=this.className='litupRow odd';

 There are also javascript functions available on the net that allow you
 to add and remove classes from an element.

 Regards,
 Erik.

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



 Gwyn Evans schreef:
 I'm not sure enought of CSS and tables to be able to say if there's
 going to be any issues with trying to have both this and the Odd/Even
 classes working in the table row, though!

 /Gwyn


 -
 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=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 

-- 
Thomas Küchenthal
Technical Director

- Business Domain Management -


 LEMARIT Domain Management GmbH
 Werkstrasse 12
 D - 24955 Harrislee / Flensburg
 -
 Tel.Nr: +49 (0)461 / 5050 35 - 90
 Fax Nr: +49 (0)461 / 5050 35 - 35
 E-Mail: [EMAIL PROTECTED]
 Domain: www.lemarit.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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] MouseOver Effect on DataTable

2006-09-06 Thread Thomas Küchenthal
that row has become needless, of course

//tag.put(class, (getIndex() % 2 == 0) ? CLASS_EVEN : CLASS_ODD);

/thomas

Thomas Küchenthal wrote:
 Thank you for your help!!
 
 I did it that way now:
 
 
 public class MyDataTable extends DefaultDataTable
 {
 
   public MyDataTable(String id, List columns, SortableDataProvider
 dataProvider, int rowsPerPage)
   {
   super(id, columns, dataProvider, rowsPerPage);
   }
 
   protected Item newRowItem(String id, int index, IModel model)
   {
   return new MyOddEvenElement(id, index, model);
   }
 }
 
 
 public class MyOddEvenElement extends OddEvenItem
 {
   private String CLASS_EVEN = even;
   private String CLASS_ODD = odd;
   private String ON_MOUSE_OVER = this.className='litupRowOver';;
   private String ON_MOUSE_OUT_ODD = this.className='odd';;
   private String ON_MOUSE_OUT_EVEN = this.className='even';;
   
   public MyOddEvenElement(String id, int index, IModel model)
   {
   super(id, index, model);
   }
   protected void onComponentTag(ComponentTag tag)
   {
   super.onComponentTag(tag);
   tag.put(class, (getIndex() % 2 == 0) ? CLASS_EVEN :CLASS_ODD);
   tag.put(onmouseover, ON_MOUSE_OVER);
   tag.put(onmouseout, (getIndex() % 2 == 0) ? ON_MOUSE_OUT_EVEN :
 ON_MOUSE_OUT_ODD);
   }
 }
 
 
 What do you think? Is that a reasonable approach?
 
 
 /thomas
 
 
 Gwyn Evans wrote:
 The problem you've not addressed is how you set the different
 'onmouseout' functions in the repeater... I expect it can be done by
 extending the way that the OddEvenItem itself extends things, though.

 What I was thinking about was if there'd be a way of putting in a
 span or similar, such that the mouseovers could just do their set 
 clear, leaving the odd/even being set on the tr?  While I don't
 know, I've got the impression that I'd run into issues as to what tags
 would actually be allowed where I'd need them in order to do that...

 /Gwyn

 On 06/09/06, Erik van Oosten [EMAIL PROTECTED] wrote:
 The combination won't work.

 Try this for the even rows:

 tr wicket:id=results class=even
 onmouseover=this.className='litupRowOver';
 onmouseout=this.className='even';

 and for the odd rows:

 tr wicket:id=results class=odd
 onmouseover=this.className='litupRowOver';
 onmouseout=this.className='odd';

 I removed the class litupRow as it contains no style in your example. If
 you want to maintain it do this:

 tr wicket:id=results class=litupRow even
 onmouseover=this.className='litupRowOver';
 onmouseout=this.className='litupRow even';

 and for the odd rows:

 tr wicket:id=results class=litupRow odd
 onmouseover=this.className='litupRowOver';
 onmouseout=this.className='litupRow odd';

 There are also javascript functions available on the net that allow you
 to add and remove classes from an element.

 Regards,
 Erik.

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



 Gwyn Evans schreef:
 I'm not sure enought of CSS and tables to be able to say if there's
 going to be any issues with trying to have both this and the Odd/Even
 classes working in the table row, though!

 /Gwyn

 -
 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=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


 

-- 
Thomas Küchenthal
Technical Director

- Business Domain Management -


 LEMARIT Domain Management GmbH
 Werkstrasse 12
 D - 24955 Harrislee / Flensburg
 -
 Tel.Nr: +49 (0)461 / 5050 35 - 90
 Fax Nr: +49 (0)461 / 5050 35 - 35
 E-Mail: [EMAIL PROTECTED]
 Domain: www.lemarit.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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] java.lang.NoClassDefFoundError after deployment

2006-02-24 Thread Thomas Küchenthal

Dear all,

I have developed a Wicket-Application (wicket 1.1)on my Windows XP 
machine. In some Pages (Pages for editing data), I used the 
ImageButton.class and Image.class within the Form. Everything went fine.


But now, after I deployed the application on the server, all Pages that 
have editing functionality are causing the following NoClassDefFound 
Error.


(I'm unsing Java 1.4.2  Tomcat 5.0.28, same as on the Windows machine)


Could it be, that the getLocalGraphicsEnvironment method is causing 
the error because there is no X-Server running on the machine?


Thanks in advance
thomas



java.lang.NoClassDefFoundError
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Class.java:141)

java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
java.awt.Font.initializeFont(Font.java:308)
java.awt.Font.init(Font.java:344)

wicket.markup.html.image.resource.DefaultButtonImageResource.init(DefaultButtonImageResource.java:55)

wicket.markup.html.image.resource.DefaultButtonImageResourceFactory.newResource(DefaultButtonImageResourceFactory.java:46)

wicket.markup.html.image.resource.LocalizedImageResource.newImage(LocalizedImageResource.java:368)

wicket.markup.html.image.resource.LocalizedImageResource.setSrcAttribute(LocalizedImageResource.java:255)
wicket.markup.html.form.ImageButton.onComponentTag(ImageButton.java:118)
wicket.Component.renderComponent(Component.java:1866)

wicket.markup.html.WebMarkupContainer.onRender(WebMarkupContainer.java:77)
wicket.Component.render(Component.java:1163)
wicket.MarkupContainer.renderNext(MarkupContainer.java:1136)
wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:811)
wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:753)
wicket.Component.renderComponent(Component.java:1888)

wicket.markup.html.WebMarkupContainer.onRender(WebMarkupContainer.java:77)
wicket.markup.html.form.Form.onRender(Form.java:517)
wicket.Component.render(Component.java:1163)

wicket.markup.html.BodyOnLoadContainer.resolve(BodyOnLoadContainer.java:106)
wicket.MarkupContainer.renderNext(MarkupContainer.java:1159)
wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:811)
wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:753)
wicket.Component.renderComponent(Component.java:1888)

wicket.markup.html.WebMarkupContainer.onRender(WebMarkupContainer.java:77)
wicket.Component.render(Component.java:1163)
wicket.MarkupContainer.autoAdd(MarkupContainer.java:170)

wicket.markup.html.BodyOnLoadResolver.resolve(BodyOnLoadResolver.java:60)
wicket.MarkupContainer.renderNext(MarkupContainer.java:1146)
wicket.MarkupContainer.renderAll(MarkupContainer.java:779)
wicket.Page.onRender(Page.java:788)
wicket.Component.render(Component.java:1163)
wicket.Page.doRender(Page.java:251)
wicket.RequestCycle.respond(RequestCycle.java:948)
wicket.RequestCycle.request(RequestCycle.java:411)
wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:208)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)




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


Re: [Wicket-user] java.lang.NoClassDefFoundError after deployment

2006-02-24 Thread Thomas Küchenthal

headless=true works perfect.

Great help,
Thanks!

Dirk Markert wrote:

Hi Thomas,
 
I think your assumption is right. You have to run java headless or 
install xvfb.
 
Dirk


 
2006/2/24, Thomas Küchenthal [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]:


Dear all,

I have developed a Wicket-Application (wicket 1.1)on my Windows XP
machine. In some Pages (Pages for editing data), I used the
ImageButton.class and Image.class within the Form. Everything
went fine.

But now, after I deployed the application on the server, all Pages that
have editing functionality are causing the following NoClassDefFound
Error.

(I'm unsing Java 1.4.2  Tomcat 5.0.28, same as on the Windows machine)


Could it be, that the getLocalGraphicsEnvironment method is causing
the error because there is no X-Server running on the machine?

Thanks in advance
thomas



java.lang.NoClassDefFoundError
   java.lang.Class.forName0(Native Method)
   java.lang.Class.forName(Class.java:141)
   java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment
(GraphicsEnvironment.java:62)
   java.awt.Font.initializeFont(Font.java:308)
   java.awt.Font.init(Font.java:344)
  
wicket.markup.html.image.resource.DefaultButtonImageResource.init(DefaultButtonImageResource.java

:55)
  
wicket.markup.html.image.resource.DefaultButtonImageResourceFactory.newResource(DefaultButtonImageResourceFactory.java:46)
  
wicket.markup.html.image.resource.LocalizedImageResource.newImage(LocalizedImageResource.java

:368)
  
wicket.markup.html.image.resource.LocalizedImageResource.setSrcAttribute(LocalizedImageResource.java:255)
  
wicket.markup.html.form.ImageButton.onComponentTag(ImageButton.java:118)

   wicket.Component.renderComponent (Component.java:1866)
  
wicket.markup.html.WebMarkupContainer.onRender(WebMarkupContainer.java:77)

   wicket.Component.render(Component.java:1163)
   wicket.MarkupContainer.renderNext(MarkupContainer.java :1136)
  
wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:811)
  
wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:753)

   wicket.Component.renderComponent(Component.java :1888)
  
wicket.markup.html.WebMarkupContainer.onRender(WebMarkupContainer.java:77)

   wicket.markup.html.form.Form.onRender(Form.java:517)
   wicket.Component.render(Component.java:1163)
   wicket.markup.html.BodyOnLoadContainer.resolve
(BodyOnLoadContainer.java:106)
   wicket.MarkupContainer.renderNext(MarkupContainer.java:1159)
  
wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:811)

   wicket.MarkupContainer.onComponentTagBody
(MarkupContainer.java:753)
   wicket.Component.renderComponent(Component.java:1888)
  
wicket.markup.html.WebMarkupContainer.onRender(WebMarkupContainer.java:77)

   wicket.Component.render(Component.java :1163)
   wicket.MarkupContainer.autoAdd(MarkupContainer.java:170)
  
wicket.markup.html.BodyOnLoadResolver.resolve(BodyOnLoadResolver.java:60)

   wicket.MarkupContainer.renderNext(MarkupContainer.java :1146)
   wicket.MarkupContainer.renderAll(MarkupContainer.java:779)
   wicket.Page.onRender(Page.java:788)
   wicket.Component.render(Component.java:1163)
   wicket.Page.doRender(Page.java:251)
   wicket.RequestCycle.respond(RequestCycle.java:948)
   wicket.RequestCycle.request(RequestCycle.java:411)
   wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:208)
   javax.servlet.http.HttpServlet.service (HttpServlet.java:689)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)




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





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642

Re: [Wicket-user] DOJO FXOnClickWiper

2006-01-25 Thread Thomas Küchenthal
Thanks for help. I'm sill without success. Nothing happens when I click 
the trigger.


I' using a CheckGroup component, maybe that's the problem. Or I maybe I 
put the components in the wrong hierarchie?


Here is my (reduced) Java  HTML code, please have a look:


public class ExpertPage extends DefaultPage
{
private static final int TLDGROUP1 = 1;
private List list1;
private String title1;

public ExpertPage()
{

IDAOTldQuery query =DAOTldQueryFactory.getDAOTldQuery();

try {
/* getting the List Data from the DB */ 
list1 = query.getTlds(TLDGROUP1);
title1 = query.getTitle(TLDGROUP1);

} catch (DAOException e) {
e.printStackTrace();
}

final Input input = new Input();

final CheckGroup group1 = new CheckGroup(group1, new 
ArrayList());

// create a Form
Form form = new Form(form) {
protected void onSubmit()
{
 // Databasestuff.
};

/* add the Form to the WebPage */
add(form);
/* add the CheckGroup to the Form */
form.add(group1);
/* add a CheckGroupSelector to the CheckGroup */
group1.add(new CheckGroupSelector(group1selector));
/* Add a Label to the CheckGroup */
group1.add(new Label(title1, title1));

 /* Here comes the ListView that I want to Wipe */
ListView tlds1 = new ListView(tlds1, list1) {

protected void populateItem(ListItem item)
{

item.add(new Check(check1, item.getModel()));
item.add(new Label(tld1, new PropertyModel(item.getModel(), 
tld)));
		item.add(new Label(subTld1, new PropertyModel(item.getModel(), 
subTld)));
		item.add(new Label(territory1, new PropertyModel(item.getModel(), 
territory)));

item.add(PopupInfoPage.link(info, (Tld) 
item.getModelObject()));
}
};


/* From here on i'm lost...  Is this the way to encapsulate the 
ListView in a WebMarkupContainer ?  */


Label testtrigger = new Label(testtrigger, click me);
group1.add(testtrigger);
	WebMarkupContainer container = new  
WebMarkupContainer(container);

container.add(tlds1);
container.add(new FXOnClickWiper(10, testtrigger, true));
group1.add(container);



// .. other stuff
TextField textfield = new TextField(textfield);
textfield.setModel(new CompoundPropertyModel(input));
form.add(textfield);
add(new FeedbackPanel(feedback));
// MENU  ... and other components


}

HTMl Markup:

 div wicket:id=group1
table
th colspan=5span wicket:id=title1title1/span/th
tr
 td width=30INPUT type=checkbox wicket:id=group1selector/td
td width=30all/td
tddiv wicket:id=testtrigger/div/td
 /tr
 tr
td
div wicket:id=container
tr wicket:id=tlds1
tdinput type=checkbox wicket:id=check1 //td
tdspan wicket:id=tld1[tld]/span/td
td width=30span wicket:id=subTld1[subTld]/span/td
td width=250span 
wicket:id=territory1[territory]/span/td
tda wicket:id=info[info]/a/td
/tr
   /div
   /td
/tr
 /table
 /div


/thomas


Marco van de Haar wrote:
Ok, Igor is right about the ListView. You will need to encapsulate it in 
a WebMarkupContainer to make it wipeable. I updated the FXOnClickWiper 
code in CVS so that it is also compatible with single ListItems. You can 
add it in the populateItem() method.


NOTE: if you use the WebMarkupContainer, use a Div, the dojo wiping 
animation does not seem to work all the time with SPAN tags. It also 
does not work if you try to wipe a TD tag. Just put everything in the TD 
in a DIV and wipe the DIV.


Igor Vaynberg wrote:

if you want it to work on the entire listview then you have to add it 
to a webmarkupcontainer that surrounds the listview.
if you want it to work on idividual rows of the listview you have to 
add it to the listitem in populateitem. the listview itself is not 
really a component as far as rendering goes because it has no markup, 
but allows its immediate children to use that markup instead. so 
adding behaviors to the listview component will have no effect.


-Igor


On 1/24/06, *Thomas Küchenthal* [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


Does anybody know if the FXOnClickWiper() from the Wicket-DOJO
works on
the ListView Component?
I tried, but without success. If I click

Re: [Wicket-user] DOJO FXOnClickWiper

2006-01-25 Thread Thomas Küchenthal

That's it. It works now!
Thanks, this have been a great help to me!

/thomas


Marco van de Haar wrote:

btw, I see in your HTML you put a TR in a div.

div wicket:id=container
   tr wicket:id=tlds1
  tdinput type=checkbox wicket:id=check1 //td
  tdspan wicket:id=tld1[tld]/span/td
   td width=30span wicket:id=subTld1[subTld]/span/td
   td width=250span wicket:id=territory1[territory]/span/td
   tda wicket:id=info[info]/a/td
  /tr
  /div

I dont think this is valid HTML. You should try something like:

tr
 td
   div wicket:id=container
   content:  listitem or complete listview, whatever you want
   /div
 /td
/tr

either way, dont try wo wipe a table or  tr tag directly. Dojo does not 
suppor that. The element will collapse, but not smoothly. Always try to 
encapsulate the element-to-be-wiped into a div.



Thomas Küchenthal wrote:

Thanks for help. I'm sill without success. Nothing happens when I 
click the trigger.


I' using a CheckGroup component, maybe that's the problem. Or I maybe 
I put the components in the wrong hierarchie?


Here is my (reduced) Java  HTML code, please have a look:


public class ExpertPage extends DefaultPage
{
private static final int TLDGROUP1 = 1;
private List list1;
private String title1;

public ExpertPage()
{

IDAOTldQuery query =DAOTldQueryFactory.getDAOTldQuery();

try {
/* getting the List Data from the DB */   
list1 = query.getTlds(TLDGROUP1);

title1 = query.getTitle(TLDGROUP1);

} catch (DAOException e) {
e.printStackTrace();
}

final Input input = new Input();

final CheckGroup group1 = new CheckGroup(group1, new 
ArrayList());


// create a Form
Form form = new Form(form) {
protected void onSubmit()
{
 // Databasestuff.
};

/* add the Form to the WebPage */
add(form);
/* add the CheckGroup to the Form */
form.add(group1);
/* add a CheckGroupSelector to the CheckGroup */
group1.add(new CheckGroupSelector(group1selector));
/* Add a Label to the CheckGroup */
group1.add(new Label(title1, title1));

 /* Here comes the ListView that I want to Wipe */
ListView tlds1 = new ListView(tlds1, list1) {

protected void populateItem(ListItem item)
{

item.add(new Check(check1, item.getModel()));
item.add(new Label(tld1, new PropertyModel(item.getModel(), 
tld)));
item.add(new Label(subTld1, new 
PropertyModel(item.getModel(), subTld)));
item.add(new Label(territory1, new 
PropertyModel(item.getModel(), territory)));
item.add(PopupInfoPage.link(info, (Tld) 
item.getModelObject()));

}
};


/* From here on i'm lost...  Is this the way to encapsulate 
the ListView in a WebMarkupContainer ?  */

Label testtrigger = new Label(testtrigger, click me);
group1.add(testtrigger);
WebMarkupContainer container = new  
WebMarkupContainer(container);

container.add(tlds1);
container.add(new FXOnClickWiper(10, testtrigger, true));
group1.add(container);



// .. other stuff
TextField textfield = new TextField(textfield);
textfield.setModel(new CompoundPropertyModel(input));
form.add(textfield);
add(new FeedbackPanel(feedback));
// MENU  ... and other components


}

HTMl Markup:

 div wicket:id=group1
  table
th colspan=5span wicket:id=title1title1/span/th
tr
 td width=30INPUT type=checkbox 
wicket:id=group1selector/td

td width=30all/td
tddiv wicket:id=testtrigger/div/td
 /tr
 tr
td
div wicket:id=container
tr wicket:id=tlds1
   tdinput type=checkbox wicket:id=check1 //td
   tdspan wicket:id=tld1[tld]/span/td
td width=30span wicket:id=subTld1[subTld]/span/td
td width=250span 
wicket:id=territory1[territory]/span/td

tda wicket:id=info[info]/a/td
   /tr
   /div
   /td
/tr
 /table
 /div


/thomas


Marco van de Haar wrote:

Ok, Igor is right about the ListView. You will need to encapsulate it 
in a WebMarkupContainer to make it wipeable. I updated the 
FXOnClickWiper code in CVS so that it is also compatible with single 
ListItems. You can add it in the populateItem() method.


NOTE: if you use the WebMarkupContainer, use a Div, the dojo wiping 
animation does not seem to work all the time with SPAN tags. It also 
does not work if you try to wipe a TD tag. Just put everything in the 
TD in a DIV and wipe the DIV.


Igor Vaynberg wrote:

if you want it to work on the entire listview then you have to add 
it to a webmarkupcontainer that surrounds the listview.
if you

[Wicket-user] DOJO FXOnClickWiper

2006-01-24 Thread Thomas Küchenthal
Does anybody know if the FXOnClickWiper() from the Wicket-DOJO works on 
the ListView Component?

I tried, but without success. If I click the trigger, nothing happens.
(It works fine on other components like TextArea, etc.)

/thomas


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user