JCarousel and DynamicImageResource link not working

2014-07-28 Thread Delange
Hi, after 2 years I'm almost ready with my website and strugling with the
last thing: I have a page which contains a JCarousel with multiple images
(jpg). A customer should click on a photo and then see the picure in a
normal format. The photo's are stored on another location on disk and a
retrieved with a DynamicImageResource. It almost works fine. The pictures
are shown on screen, the carousel displays them but after clicking on the
picture the system say the picutre is not found. Looking at the html  source
i can see the the link is wrong. But HOW TO FIX A GOOD LINK??

java code
Link link = new LinkString(imageLink){
@Override
public void onClick() { 

}

};
MyImage myImage = new MyImage( imageName );
Image image =  new Image(image11  , myImage );
link.add(new AttributeModifier(href, main )); 
link.add(image);
parent.add(link);
the generated html is
li 
  main 
../page?1-IResourceListener-form-imageContainer-mycarousel-rv-1-imageLink-image11
 
  

/li


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/JCarousel-and-DynamicImageResource-link-not-working-tp4666777.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



DateTextField, image is displayed on line below

2013-07-11 Thread Delange
I use css for positioning my fields, but Datatextfield ICON is always
displayed a line below the input

For example:
Orderdate B
 date icon
Who can help?


css
.regel{
 clear:left;
}
.t1{
display: inline-block;
width: 200px;
float:left;
clear: left;
}
.t2{
display: inline-block;
width: 15px;
float:left;
color: red
}
.t3{
display: inline-block;
width: 100px;
float:left;

}

label class=t2nbsp;/label
div class=t3input wicket:id=besteldatum name=besteldatum
type=text size=9 maxlength=9//div

Is displayed as:

div class=regel
label class=t1Besteldatum/label
label class=t2nbsp;/label
div class=t3input name=besteldatum type=text size=9 maxlength=9
value=05/07/2013 id=id6/
nbsp;
../resource/org.apache.wicket.extensions.yui.calendar.DatePicker/icon1-ver-A9D71378ED9162B2DB5DE040C09D5BDE.gif
/div
/div



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DateTextField-image-is-displayed-on-line-below-tp4660217.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Dynamic QR image

2013-05-26 Thread Delange
Hi,
I'm trying to create a dynamic QR image on the screen. 


Html


Wicket
form.add(new Image(image5, getImage5Resource()));
public ResourceReference getImage5Resource() {
return new ResourceReference(CompanyPanel.class, image5)
{
@Override
public IResource getResource()
{
final BufferedDynamicImageResource resource = new
BufferedDynamicImageResource();
final BufferedImage image = new BufferedImage(300, 300,
BufferedImage.TYPE_INT_RGB);
String text = ;

String t=\n;
text = 
+BEGIN:VCARD+t
+VERSION:2.1+t
+NOTE:This works!+t
+CATEGORIES:BUSINESS,WORK+t
+END:VCARD;


drawQR( (Graphics2D)image.getGraphics() , text );
resource.setImage(image);
return resource;
}
};
}
void drawQR(Graphics2D graphics,String text)
{
 
try {
BitMatrix byteMatrix = new QRCodeWriter().encode(text,
BarcodeFormat.QR_CODE, 300, 300);
int matrixWidth = byteMatrix.getWidth();

//MatrixToImageWriter.writeToStream(byteMatrix, png, new
FileOutputStream(new File(qrcode_test.png +))); 
BufferedImage image = new BufferedImage(matrixWidth , 
matrixWidth,
BufferedImage.TYPE_INT_RGB);

 

graphics = image.createGraphics();
graphics.drawImage(image, 0, 0, 300, 300, null);
 
 
System.out.println(text);

} catch (WriterException e) {
  
e.printStackTrace();
} catch (Exception e) {
 
e.printStackTrace();

}
}



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Dynamic-QR-image-tp4659029.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Datatable Filtercolumn is not reacting

2013-03-15 Thread Delange
I use a datatable with FilterColumn. I specially made a IntegerColumn. It
works fine, but if the user enters a blank or nothing the table is not
refreshed. I can see that the old value is used.
If a enter a zero or another integer value it works like i expected.
How can I repair this problem

My source is
@SuppressWarnings({ unchecked, rawtypes, serial })
public TextFilteredPropertyColumn getInteger(String header,String
sort,final String field,final int inputsize,final boolean formatOutput,final
String format) {
return new TextFilteredPropertyColumnString,IModel(
new ModelString(header), sort, field) {

@Override public void populateItem(final 
ItemICellPopulatorlt;String
item, final String componentId,final IModelString rowModel)
{
Label label = new Label(componentId, 
createLabelModel(rowModel)){
public C IConverterC 
getConverter(ClassC type){
IConverter converter = new
MyIntegerConverter(formatOutput,format);
return converter;
}   
};
item.add(label); 
}
 
@Override
public String getCssClass() {  
return numeric +field; 
};  
@Override 
public Component getFilter(final String varComponentId, final
FilterForm varForm) { 
 
TextFilterInteger filter = (TextFilterInteger)
super.getFilter(varComponentId, varForm); 
filter.getFilter().add(new AttributeModifier(size, new
ModelString(+inputsize)));
filter.getFilter().add(new AttributeModifier(style, new
ModelString(text-align:right;)));
filter.getFilter().add(new AttributeModifier(class, new
ModelString(numeric)));

return filter; 
} 
};
}   



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Datatable-Filtercolumn-is-not-reacting-tp4657285.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



How to change style of td which contain a selection field

2013-02-13 Thread Delange
I my table I use selections. My problem is that the selection field is
aligned to the left while it should be aligned to the right

How can I have the input selections field aligned to the right?


Example
Quantity in Storage 
___ --- this selection field must be
aligned to the right
 8.700
 5.400





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-change-style-of-td-which-contain-a-selection-field-tp4656333.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Image does not appears not always

2013-01-16 Thread Delange
When things go well

   div class=opdoms
   ./?6-IResourceListener-opdrachten-1-image 
  divtest/div
   /div

When wrong (when no picture is found)
   div class=opdoms
   ./?1-IResourceListener-opdrachten-1-image 
  divtest/div
   /div
   div class=opdoms
   ./?3-IResourceListener-opdrachten-1-image 
  divtest/div
   /div
And the url
http://localhost:8080/Mercado/?32




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Image-does-not-appears-not-always-tp4655364p4655433.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Image does not appears not always

2013-01-16 Thread Delange
I show that the text was changed, here again, i remove the start end  html 
characters

With a good result
   div class=opdoms
  img src=./?20-IResourceListener-opdrachten-1-image
class=opdimage width=75 height=50/
  divtest/div
   /div
When bad:

   div class=quot;opdomsquot;
   img src=quot;./?1-IResourceListener-opdrachten-1-imagequot;
class=quot;opdimagequot; width=quot;75quot; height=quot;50quot;/
  divtest/div
   /div

And sometimes a message appears in my dos box (from jetty environment)
18:53:12,512 ERROR DefaultExceptionMapper:105 - Connection lost, give up
responding.
org.apache.wicket.protocol.http.servlet.ResponseIOException:
org.mortbay.jetty.EofException
at
org.apache.wicket.protocol.http.servlet.ServletWebResponse.write(ServletWebResponse.java:123)
at
org.apache.wicket.protocol.http.HeaderBufferingWebResponse.write(HeaderBufferingWebResponse.java:181)
at
org.apache.wicket.request.resource.ContextRelativeResource$1.writeData(ContextRelativeResource.java:99)
at
org.apache.wicket.request.resource.AbstractResource.respond(AbstractResource.java:497)
at
org.apache.wicket.markup.html.image.resource.LocalizedImageResource.onResourceRequested(LocalizedImageResource.java:201)



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Image-does-not-appears-not-always-tp4655364p4655434.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Image does not appears not always

2013-01-14 Thread Delange
I have a website where a user can upload images. On the first page, i always
show one image on this home page

Strange enough, mostly i can see the image but sometimes not.

What could be the reason that no image is shown?


@Html
images/noimage.jpg 


@Directory structure
wepapps
   mywebsite
design 
with more subdirectories, name = a number, contains images0
WEB-INF


@Java
String filename = noimage.jpg;
File[] files = getUploadFolder(design.getNumber()).listFiles();
 
if (files != null  files.length  0) {
filename  = files[0].getName();
item.add( getImage( design.getNumber() + / + filename) );
} else {
item.add(new Image(image, new
ContextRelativeResource(images/noimage.jpg)));
}

private Folder getUploadFolder(long designnumber) {
String folderLocation = MyProperties.getImageLocation();
Folder folder = new Folder(folderLocation+designnumber, );
folder.mkdirs();
logger.info(path=+folder.getAbsolutePath());
File[] files = folder.getFiles();
return  folder; 
}
private Image getImage(String imageName){
Image image =  new Image(image  , new ContextRelativeResource(
/design/+imageName));
return image;
}



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Image-does-not-appears-not-always-tp4655364.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



DynamicImageResource EofException/Connection lost V1.5.7

2013-01-04 Thread Delange
On my website I display images from another disk location.
When I select this page I get sometimes a EofException error. Not always.
Most of the time the images are correctly displayed

How to prevent this message?


13:03:46,636 ERROR DefaultExceptionMapper:105 - Connection lost, give up
responding.
org.apache.wicket.protocol.http.servlet.ResponseIOException:
org.mortbay.jetty.EofException
at
org.apache.wicket.protocol.http.servlet.ServletWebResponse.flush(ServletWebResponse.java:262)
at
org.apache.wicket.protocol.http.HeaderBufferingWebResponse.flush(HeaderBufferingWebResponse.java:92)
at
org.apache.wicket.request.resource.AbstractResource.flushResponseAfterHeaders(AbstractResource.java:619)
at
org.apache.wicket.request.resource.AbstractResource.setResponseHeaders(AbstractResource.java:605)
at
org.apache.wicket.request.resource.AbstractResource.respond(AbstractResource.java:485)
at
org.apache.wicket.markup.html.image.resource.LocalizedImageResource.onResourceRequested(LocalizedImageResource.java:201)
at
org.apache.wicket.markup.html.image.Image.onResourceRequested(Image.java:150)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:260)
at
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216)
at
org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:248)
at
org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:234)
at
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:784)
at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
at
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:255)
at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:283)
at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:244)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536)
at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:915)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: org.mortbay.jetty.EofException
at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:787)
at
org.mortbay.jetty.HttpConnection.flushResponse(HttpConnection.java:685)
at org.mortbay.jetty.Response.flushBuffer(Response.java:958)
at
org.apache.wicket.protocol.http.servlet.ServletWebResponse.flush(ServletWebResponse.java:258)
... 38 more
Caused by: java.io.IOException: De externe host heeft een verbinding
verbroken
at sun.nio.ch.SocketDispatcher.write0(Native Method)
at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:89)
at sun.nio.ch.IOUtil.write(IOUtil.java:60)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:450)
at
org.mortbay.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:169)
at
org.mortbay.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:221)
 

Re: Different root between upload folder and ContextRelativeResource

2012-12-30 Thread Delange
Thanks for answering.

I follewed the link, but I must admit that I still struggle with the
example.
I do not know enough of BufferedImage, OutputStream etc to know what I need
to change.
Hope you can describe what I need to change in order to download images.

Thans in advance!




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Different-root-between-upload-folder-and-ContextRelativeResource-tp4655089p4655102.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to resolve right path for variable images (with Jetty)

2012-12-27 Thread Delange
Do you have an example, also with html?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-resolve-right-path-for-variable-images-with-Jetty-tp4655058p4655088.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Different root between upload folder and ContextRelativeResource

2012-12-27 Thread Delange
I have an application which can upload pictures. 
When I use the upload with Jetty in my Eclipse directory it stores all
pictures under
eclipseproject
/images
/src/main/webapp/images

But if i want to display them with ContextRelativeResource then they must be
in /src/main/webapp/images

Upload command is
Folder uploadFolder = new Folder(opdrachten/+input.getOpdrachtnummer(),
);

for display i use
String picture =
opdrachten/+opdracht.getOpdrachtnummer()+/+file.getName();
logger.info(picture);
Image image2 = new Image(image2,new 
ContextRelativeResource(picture)); 
What is wrong?




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Different-root-between-upload-folder-and-ContextRelativeResource-tp4655089.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



How to resolve right path for variable images (with Jetty)

2012-12-26 Thread Delange
In my webapplication a user can upload images. They are displayed on other
pages.

When I start the application with Jetty from the Eclipse directory, all
images are stored directly under the project folder.
But when I want to display them, they must be under src/main/webapp/
The is caused by the ContextRelativeResource. If I don't use this it doesn't
work

Has anyone a solution for this strange effect?

My directory structure in eclipse is:
mywebapplication
images
   photos   
  pic001.jpg
src
   main
 java
...
 resources
 ...
 webapp
images
 photo
  pic001.jpg



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-resolve-right-path-for-variable-images-with-Jetty-tp4655058.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Image source location problems, examples did not help

2012-11-07 Thread Delange
sorry, the directory structure is exactly

myapplication 
css 
images 
opdrachten
WEB-INF 
  classes etc etc 


Both directories (images and opdrachten) contain images. The images from
opdrachten are uploads from the website



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Image-source-location-problems-examples-did-not-help-tp4653664p4653673.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Image source location problems, examples did not help

2012-11-06 Thread Delange
Maybe it's easy but I struggle to long with it. In my webapplication I have
this structure
myapplication
   css
   images
   WEB-INF
 classes etc etc

My Html looks like this
opdrachten/284/IMG_0013.JPG 

My Java is:
StaticImage imageTest = new StaticImage(imagetest,new
Model(/opdrachten/284/P1010841.JPG));
form.add(imageTest);

Then on my page the link is
/opdrachten/284/P1010841.JPG 


I also tried Image but that didn't work either. What's wrong?

And what to do when the location in another directory on the same system?





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Image-source-location-problems-examples-did-not-help-tp4653664.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Image source location problems, examples did not help

2012-11-06 Thread Delange
Yes I mistypped it. 
Do you have a suggestion how to solve this problem?




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Image-source-location-problems-examples-did-not-help-tp4653664p4653666.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Showing images from c:\xxxx\xx directory

2012-11-02 Thread Delange
Hi, I have a webapplication where users can upload their files. I store them
on my C:\xxx\xx directory.
It all works fine, except... I do no know how to show them again in wicket.

Who can help me ?




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Showing-images-from-c--xx-directory-tp4653586.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Is dataview/table with multiple rows possible?

2012-09-17 Thread Delange
Hi, I need a dataview/table with multipe rows
One row is no problem, so who can help me with an example with 2 rows?



#  


 







--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Is-dataview-table-with-multiple-rows-possible-tp4652055.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Is dataview/table with multiple rows possible?

2012-09-17 Thread Delange
I did, none of them have multiple rows 
What I mean is for example:


 


 




How to do that?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Is-dataview-table-with-multiple-rows-possible-tp4652055p4652057.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




WebApplication.getComponentPreOnBeforeRenderListeners not fount

2012-08-22 Thread Delange
After a day of changing a lot I got this message when starting wicket from
mvn jetty:run

I reinstalled older sources but still get this message
wicket.version1.5.7/wicket.version 

Who can help on this?

2012-08-22 16:39:53.120::WARN:  Error starting handlers

Java.lang.NoSuchMethodError:
org.apache.wicket.protocol.http.WebApplication.getComponentPreOnBeforeRenderListeners()Lorg
apache/wicket/application/ComponentOnBeforeRenderListenerCollection;
   at
com.vdr.logistiek.MasterApplication.init(MasterApplication.java:40)



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WebApplication-getComponentPreOnBeforeRenderListeners-not-fount-tp4651434.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: WebApplication.getComponentPreOnBeforeRenderListeners not fount

2012-08-22 Thread Delange
Don't know what caused the duplicate jars, but you where right. Many thanks!



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WebApplication-getComponentPreOnBeforeRenderListeners-not-fount-tp4651434p4651441.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Setfocus depending on error routine

2012-08-20 Thread Delange
Hi, possibly it's already discussed by I don't see it.

How to set focus on a variable field during a check? For example a form with
address fields. 
Every field is checked and when, for example, the zipcode is wrong I want to
set focus on the zipcode.
What to do?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Setfocus-depending-on-error-routine-tp4651364.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Dataview: need message nothing found

2012-08-20 Thread Delange
I tried this, but I can't figure out how to convert from datatable to an
AbstractRepeater.



DataTable table = new DataTable(datatable, columns, kostenOVProvider, 10){
protected Item newRowItem(String id, int index, IModel 
model) { 
Item item = super.newRowItem(id, index, model); 
item.add(new AttributeModifier(class,  new Model( 
index % 2 == 0 ? even : odd))); 
return item; 
}  
};
FilterToolbar filterToolbar = new FilterToolbar(table, form,
kostenOVProvider);
table.addTopToolbar(new HeadersToolbar(table, 
kostenOVProvider));
table.addTopToolbar(filterToolbar);
table.addBottomToolbar(new NavigationToolbar(table));
form.add(table);
form.add(new NoRecordsContainer(norecordsFound, table));



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Dataview-need-message-nothing-found-tp4651337p4651369.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Can I use html in my messages?

2012-08-20 Thread Delange
I want to place some html in my messages. 
So that some text can be high lighted 

For example:
VKAB=Your licence will be downgraded to {1,date,medium} at 1 feb 2012
The message is added by a list 

ChoiceRendererString renderer = new
ChoiceRendererString(value,key);
ListMySelectOption list = new ArrayListMySelectOption();

list.add(new MySelectOption(1,this.getString(VkAb.Abo.same))
list.add(new MySelectOption(3,new StringResourceModel(
VkAb.Abo.toStandard,this,model,new Object[]{
eersteVolgendeMaand
}).getString()));



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Can-I-use-html-in-my-messages-tp4651383.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Dataview: need message nothing found

2012-08-17 Thread Delange
Hi, when my dataview (with selections) does not return any result, it doesn't
say anything.

How can i return a message that there are no results found. 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Dataview-need-message-nothing-found-tp4651337.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Dataview: need a differente css for negative values

2012-08-16 Thread Delange
Hi, in my DataView I have a column with amounts.
I want to give the positive ones a green color, and the negative ones a red
color;

How to accomplish that?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Dataview-need-a-differente-css-for-negative-values-tp4651270.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Dataview with filter: I need a textfilter for a numeric column

2012-08-15 Thread Delange
I have a datatable with a filter. At this moment a user can enter some search
combinations in the header for alpha fields, for example:
column area:   Area51Area60

I also need this for numeric fields (amounts and date fields)
How can I accomplish that?

for example in the column quantity I want something like: 10002000

My problem is only the alphanumeric input for a numeric field. 
  





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Dataview-with-filter-I-need-a-textfilter-for-a-numeric-column-tp4651248.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Checkbox in DataTable is not reflecting its sts in checkbox

2012-08-14 Thread Delange
I agree, but how should the code be? At the end it has to be placed in the
model. 
Do you have any suggestion?





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Checkbox-in-DataTable-is-not-reflecting-its-sts-in-checkbox-tp4651174p4651225.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Ajaxtabbedpanel example not working on ie9

2012-08-14 Thread Delange
Running this example from the apache website it's working ok, 
But when i run the sample example on my tomcat server and open it in an IE9
browser: i see no reaction if a choose another  tab

When I try this on Chrome or Safari it works fine.

How to resolve this with IE9?

Here a debug list: 
 1.5.5 Inspector Session: 894 bytes Page: 11,1K  builtinSource code
[go back]


first tab
 second tab
 third tab
 
This is tab-panel 1 

scroll lock | clear | close Wicket Ajax Debug Window (drag me here) 
INFO: focus set on id3
INFO: 
INFO: Initiating Ajax GET request on
tabbed-panel;jsessionid=1o1o1xat4y10e17ppe024et92n?0-1.IBehaviorListener.0-tabs-tabs~container-tabs-1-linkrandom=0.01693648764738187
INFO: Invoking pre-call handler(s)...
INFO: Received ajax response (2538 characters)
INFO: 
?xml version=1.0
encoding=UTF-8?ajax-responseevaluate/evaluateheader-contribution
encoding=wicket1 /header-contributioncomponent id=id1
/componentevaluate/evaluate/ajax-response
ERROR: Cannot create DOM document: [object Error]
ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Kan de waarde
van de eigenschap documentElement niet ophalen: het object is null of niet
gedefinieerd
INFO: Invoking post-call handler(s)...
INFO: Invoking failure handler(s)...
INFO: focus removed from id3WICKET AJAX DEBUG



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Ajaxtabbedpanel-example-not-working-on-ie9-tp4651235.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Checkbox in DataTable is not reflecting its sts in checkbox

2012-08-13 Thread Delange
Hi, in this program i use a datatable with selections. In the column  beneath
the filtercolum i added a checkbox.
The user must select wich records the program must add to another file (at
the end)

In this example the table is shown correctly, it has a checkbox.
But whatever I do I'll never see any  status change reflecting the checkbox.

(The checkbox is part of the KostenOV record that is shown)

I can'figure out what is wrong. I read a lot of articles but none could
help.

My source is:



package com.vdr.logistiek.gui.kosten.regels.opbouw;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import org.apache.wicket.AttributeModifier;
import org.apache.wicket.Component;
import
org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator;
import
org.apache.wicket.extensions.markup.html.repeater.data.sort.SortOrder;
import
org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable;
import
org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar;
import org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn;
import
org.apache.wicket.extensions.markup.html.repeater.data.table.NavigationToolbar;
import
org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn;
import
org.apache.wicket.extensions.markup.html.repeater.data.table.filter.FilterForm;
import
org.apache.wicket.extensions.markup.html.repeater.data.table.filter.FilterToolbar;
import
org.apache.wicket.extensions.markup.html.repeater.data.table.filter.FilteredAbstractColumn;
import
org.apache.wicket.extensions.markup.html.repeater.data.table.filter.GoAndClearFilter;
import
org.apache.wicket.extensions.markup.html.repeater.data.table.filter.IFilterStateLocator;
import
org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.form.Button;
import org.apache.wicket.markup.html.form.CheckBox;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.markup.html.panel.FeedbackPanel;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.markup.repeater.Item;
import org.apache.wicket.model.CompoundPropertyModel;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.LoadableDetachableModel;
import org.apache.wicket.model.Model;
import org.apache.wicket.model.ResourceModel;
import org.apache.wicket.request.mapper.parameter.PageParameters;
import org.apache.wicket.spring.injection.annot.SpringBean;
 
import com.vdr.logistiek.bo.view.KostenOV;
import com.vdr.logistiek.gui.kosten.header.HeaderPage;
import com.vdr.logistiek.gui.kosten.overzicht.KostenfacturenOverzichtPage;  
import com.vdr.logistiek.gui.template.MyFilterColumn;
import com.vdr.logistiek.service.KostenService;
import com.vdr.logistiek.service.view.KostenOVService;
 

public class RegelPage   extends WebPage{
private RegelInput input;
private ListKostenOV kostenOVList = new ArrayListKostenOV();

@SpringBean(name = kostenService) private KostenService kostenService;
@SpringBean(name = kostenOVService) private KostenOVService
kostenOVService;

public RegelPage(){
input = new RegelInput();
setDefaultModel(new CompoundPropertyModelRegelInput(input));
KostenOVProvider kostenOVProvider = new KostenOVProvider();
FilterForm form = new FilterForm(inputForm, kostenOVProvider);
 
add(form);  

addTable(form, kostenOVProvider);   

form.add(getSaveButton());
form.add(getCancelButton());
form.add(new FeedbackPanel(feedback));
}

private Form getForm(){
Form form = new Form(inputForm){
private static final long serialVersionUID = 1L;
protected void onSubmit() {
info(the form was submitted!);

}   
};
return form;
}

private Button getSaveButton(){
Button saveButton = new Button(saveButton){
public void onSubmit(){ 
System.out.println(savebutton clicked);
//  PageParameters parameters = new PageParameters();
//  setResponsePage(OverzichtPage.class,parameters);d
for (KostenOV kostenOV:kostenOVList){
System.out.println(kostenOV.isSelect());
}
 }
};
return saveButton;
}

/**
 * 
 * @return
 */
private Button getCancelButton(){
Button cancelButton = new Button(cancelButton){
@Override
public void onSubmit(){
   

Has anyone an example of a checkbox in a DataTable

2012-08-13 Thread Delange
I tried everything, I spent a whole day reading comments in this  on the
internet.  
Please please please, thanks in advance





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Has-anyone-an-example-of-a-checkbox-in-a-DataTable-tp4651182.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Checking all input in refreshingview and set focus

2012-07-25 Thread Delange
Hi, 
i have an refreshingview with input fields. 

How can I check every field in a row and set focus on it when it's wrong? 
(Validators can not be used for all fields, for example article code etc.)




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Checking-all-input-in-refreshingview-and-set-focus-tp4650772.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org