AW: Wicket Migration: Where has AjaxPostprocessingCallDecorator gone

2020-09-14 Thread Stefan Lindner
Thank you! So much!

Mit freundlichen Grüßen
---
Stefan Lindner, Visionet Hard- und Software GmbH, Karolinenstraße 52b, 90763 
Fürth
Durchwahl: Tel.: 0911/148894-10, FAX: 0911-148894-11, E-Mail: 
stefan.lind...@visionet.de
Zentrale: Tel.: 0911/148894-0, FAX: 0911-148894-99, Internet: 
http://www.visionet.de
Registergericht Fürth: HRB 6573, Geschäftsführer: Stefan Lindner


-Ursprüngliche Nachricht-
Von: Francois Meillet  
Gesendet: Montag, 14. September 2020 11:08
An: users@wicket.apache.org
Betreff: Re: Wicket Migration: Where has AjaxPostprocessingCallDecorator gone

Look at 
https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax#WicketAjax-o.a.w.ajax.IAjaxCallDecoratorisreplacedwitho.a.w.ajax.attributes.IAjaxCallListener.

François



> Le 14 sept. 2020 à 10:15, Stefan Lindner  a écrit 
> :
> 
> Or in general: where is IAjaxCallDecorator now in Wicket 9?
> 
> I'm migrating an old Wicket 1.4 project to version 9.
> 
> IAjaxCallDecorator dissapeared between Wicket 5 and 6 but I can't find any 
> hint in the migation documentsa and it was not deprecated in 1.5.
> 
> Mit freundlichen Grüßen
> ---
> Stefan Lindner, Visionet Hard- und Software GmbH, Karolinenstraße 52b, 90763 
> Fürth
> Durchwahl: Tel.: 0911/148894-10, FAX: 0911-148894-11, E-Mail: 
> stefan.lind...@visionet.de<mailto:stefan.lind...@visionet.de>
> Zentrale: Tel.: 0911/148894-0, FAX: 0911-148894-99, Internet: 
> http://www.visionet.de<http://www.visionet.de/>
> Registergericht Fürth: HRB 6573, Geschäftsführer: Stefan Lindner
> 
> 


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



Wicket Migration: Where has AjaxPostprocessingCallDecorator gone

2020-09-14 Thread Stefan Lindner
Or in general: where is IAjaxCallDecorator now in Wicket 9?

I'm migrating an old Wicket 1.4 project to version 9.

IAjaxCallDecorator dissapeared between Wicket 5 and 6 but I can't find any hint 
in the migation documentsa and it was not deprecated in 1.5.

Mit freundlichen Grüßen
---
Stefan Lindner, Visionet Hard- und Software GmbH, Karolinenstraße 52b, 90763 
Fürth
Durchwahl: Tel.: 0911/148894-10, FAX: 0911-148894-11, E-Mail: 
stefan.lind...@visionet.de<mailto:stefan.lind...@visionet.de>
Zentrale: Tel.: 0911/148894-0, FAX: 0911-148894-99, Internet: 
http://www.visionet.de<http://www.visionet.de/>
Registergericht Fürth: HRB 6573, Geschäftsführer: Stefan Lindner




AW: Wicket / WildFly 8: Log4J / SLF4J ?

2014-08-08 Thread Stefan Lindner
Hi Sebastien,

I started Wildfly8 development with wicket a few weeks ago.
At first: logging works and it seems that jboss still uses log4j wich is 
configured in standalone.xml/standalone-full.xml.
Simply adding a logger category will not work because the log level in consele 
handler is restricted to INFO:

console-handler name=CONSOLE
level name=INFO/
formatter
named-formatter name=COLOR-PATTERN/
/formatter
/console-handler

You might define your own handler like

   console-handler name=CONSOLE2
level name=TRACE/
formatter
named-formatter name=COLOR-PATTERN/
/formatter
/console-handler

And define

   logger category=...wicket...
level name=TRACE/
handlers
handler name=CONSOLE2/
/handlers
/logger

Does this help?
---
Stefan


-Ursprüngliche Nachricht-
Von: Sebastien [mailto:seb...@gmail.com] 
Gesendet: Freitag, 8. August 2014 12:27
An: users@wicket.apache.org
Betreff: Wicket / WildFly 8: Log4J / SLF4J ?

Hi all,

Well, that's not a pure wicket question but maybe the answer (if any, I
hope) could interest future readers...

I am trying to set-up a new project using Wicket (7), WildFly 8 (and EJB-3.1, 
CDI-1.1, native websockets, and probably something that make the
coffee...) but for now I am stuck because I don't have any logs in the output 
(console or file) coming from wicket itself or my wicket application.

I read all the internet (twice...), some says that's is not possible to have 
log4j/slf4j in WildFly, some says it should be activated using 
jboss-deployment-structure.xml for instance, some says it's already bound by 
default just need to add a logger category in standalone.xml and having the 
log4j.property file in the ear/war. I tried everything but after
2 days, I am running out of ideas...

So, does anyone have already deployed a simple wicket application onto WildFly 
? Are the logs working ? Is there any hint to make it work ?

Many thanks in advance,
Sebastien.

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



AW: Wicket / WildFly 8: Log4J / SLF4J ?

2014-08-08 Thread Stefan Lindner
Hi Sebastien,

did you add

Dependencies = 
org.slf4j,org.slf4j.impl,org.slf4j.jcl-over-slf4j,org.apache.log4j

to your MANIFEST.MF?

---
Stefan


-Ursprüngliche Nachricht-
Von: Sebastien [mailto:seb...@gmail.com] 
Gesendet: Freitag, 8. August 2014 12:27
An: users@wicket.apache.org
Betreff: Wicket / WildFly 8: Log4J / SLF4J ?

Hi all,

Well, that's not a pure wicket question but maybe the answer (if any, I
hope) could interest future readers...

I am trying to set-up a new project using Wicket (7), WildFly 8 (and EJB-3.1, 
CDI-1.1, native websockets, and probably something that make the
coffee...) but for now I am stuck because I don't have any logs in the output 
(console or file) coming from wicket itself or my wicket application.

I read all the internet (twice...), some says that's is not possible to have 
log4j/slf4j in WildFly, some says it should be activated using 
jboss-deployment-structure.xml for instance, some says it's already bound by 
default just need to add a logger category in standalone.xml and having the 
log4j.property file in the ear/war. I tried everything but after
2 days, I am running out of ideas...

So, does anyone have already deployed a simple wicket application onto WildFly 
? Are the logs working ? Is there any hint to make it work ?

Many thanks in advance,
Sebastien.

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



AW: Wicket / WildFly 8: Log4J / SLF4J ?

2014-08-08 Thread Stefan Lindner
Hi Sebastien,

your file looks similar to mine. I can't remember any problems with 
logging.Just worked out oft he box. Defining datasources, using own libraries 
etc was a pain but logging was not.
The only difference between you and me: i use the full profile which you 
might require to use too wehen you think about EJBs persistence, message queues 
etc.

---
Stefan


-Ursprüngliche Nachricht-
Von: Sebastien [mailto:seb...@gmail.com] 
Gesendet: Freitag, 8. August 2014 14:12
An: users@wicket.apache.org
Betreff: Re: Wicket / WildFly 8: Log4J / SLF4J ?

Hi Stefan,

Many thanks for your answer; yes, that helps to know that it is supposed to 
work out of the box!

I tried your suggestion - even if INFO would have been enough for now - without 
more success.
I also added Dependencies:
org.slf4j,org.slf4j.impl,org.slf4j.jcl-over-slf4j,org.apache.log4j to the 
manifest (I didn't had it), but nothing better unfortunately.

The generated logging.properties
(wildfly-8.1.0.Final/standalone/configuration) looks like this (see below).
Would it be possible that you compare with yours (if 
handler.CONSOLE=org.jboss.logmanager.handlers.ConsoleHandler is the same for 
instance)?

Many thanks in advance,
Sebastien.


loggers=com.arjuna,jacorb,org.apache.wicket,org.apache.tomcat.util.modeler,org.jboss.as.config,sun.rmi,jacorb.config,com.amadeus

logger.level=INFO
logger.handlers=CONSOLE

logger.com.arjuna.level=WARN
logger.com.arjuna.useParentHandlers=true

logger.jacorb.level=WARN
logger.jacorb.useParentHandlers=true

logger.org.apache.wicket.level=DEBUG
logger.org.apache.wicket.useParentHandlers=true
logger.org.apache.wicket.handlers=CONSOLE2

logger.org.apache.tomcat.util.modeler.level=WARN
logger.org.apache.tomcat.util.modeler.useParentHandlers=true

logger.org.jboss.as.config.level=DEBUG
logger.org.jboss.as.config.useParentHandlers=true

logger.sun.rmi.level=WARN
logger.sun.rmi.useParentHandlers=true

logger.jacorb.config.level=ERROR
logger.jacorb.config.useParentHandlers=true

logger.com.amadeus.level=DEBUG
logger.com.amadeus.useParentHandlers=true
logger.com.amadeus.handlers=CONSOLE2

handler.CONSOLE=org.jboss.logmanager.handlers.ConsoleHandler
handler.CONSOLE.level=INFO
handler.CONSOLE.formatter=COLOR-PATTERN
handler.CONSOLE.properties=enabled,autoFlush,target
handler.CONSOLE.enabled=true
handler.CONSOLE.autoFlush=true
handler.CONSOLE.target=SYSTEM_OUT

handler.CONSOLE2=org.jboss.logmanager.handlers.ConsoleHandler
handler.CONSOLE2.level=TRACE
handler.CONSOLE2.formatter=COLOR-PATTERN
handler.CONSOLE2.properties=enabled,autoFlush,target
handler.CONSOLE2.enabled=true
handler.CONSOLE2.autoFlush=true
handler.CONSOLE2.target=SYSTEM_OUT

# Additional formatters to configure
formatters=PATTERN


formatter.PATTERN=org.jboss.logmanager.formatters.PatternFormatter
formatter.PATTERN.properties=pattern
formatter.PATTERN.pattern=%d{-MM-dd HH\:mm\:ss,SSS} %-5p [%c] (%t) %s%E%n

formatter.COLOR-PATTERN=org.jboss.logmanager.formatters.PatternFormatter
formatter.COLOR-PATTERN.properties=pattern
formatter.COLOR-PATTERN.pattern=%K{level}%d{HH\:mm\:ss,SSS} %-5p [%c] %s%E%n


On Fri, Aug 8, 2014 at 1:40 PM, Stefan Lindner stefan.lind...@visionet.de
wrote:

 Hi Sebastien,

 did you add

 Dependencies =
 org.slf4j,org.slf4j.impl,org.slf4j.jcl-over-slf4j,org.apache.log4j

 to your MANIFEST.MF?

 ---
 Stefan


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



AW: Wicket / WildFly 8: Log4J / SLF4J ?

2014-08-08 Thread Stefan Lindner
Hi Sebastien,

just a few final words abot my Wildfly experiences.

1. Any jar file that you want to use in your applicationsmust be defined as a 
module in subfolder modules. If you want to use an oracle driver this must be 
a module
2. Modules that use other modules define this dependencies in their module.xml 
file e.g.

?xml version=1.0 encoding=UTF-8?

module xmlns=urn:jboss:module:1.1 name=de.my.module
  resources
resource-root path=my-module.jar/
  /resources
  dependencies
module name=javax.persistence.api/
module name=com.ingres/
module name=de.visionet.javalib/
module name=org.slf4j export=true/
module name=org.slf4j.impl export=true/
module name=org.slf4j.jcl-over-slf4j export=true/
module name=org.apache.log4j export=true/

system export=true
paths
path name=javax/naming/
path name=javax/sql/
path name=com/sun/proxy/
/paths
/system

  /dependencies
/module

3. Using a module like the above one in a deployes JAR/EAR or WAR needs the 
Dependencies=de.my.module specification
4. modules with export=true are inherited by the JAR/EAR or WAR

Now I think you have wicket.jar inside your WEB-INF/lib folder inside of your 
application.war file.
Such jar files are available to your app without defining them as a module.

But I don't know if e.g. wicket.jar needs a Dependencies=org.apache.log4j 
etc specification in it's MANIFEST.MF to have access tot he logging 
system. I did not try this.

Mit freundlichen Grüßen
---
Stefan Lindner, Visionet Hard- und Software GmbH, Karolinenstraße 52b, 90763 
Fürth
Durchwahl: Tel.: 0911/148894-10, FAX: 0911-148894-11, E-Mail: 
stefan.lind...@visionet.de
Zentrale: Tel.: 0911/148894-0, FAX: 0911-148894-99, Internet: 
http://www.visionet.de
Registergericht Fürth: HRB 6573, Geschäftsführer: Stefan Lindner


-Ursprüngliche Nachricht-
Von: Sebastien [mailto:seb...@gmail.com] 
Gesendet: Freitag, 8. August 2014 14:55
An: users@wicket.apache.org
Betreff: Re: Wicket / WildFly 8: Log4J / SLF4J ?

Hi Stefan,

Thanks for your verification, it is really helpful.
By conscience, I tried out the full profile, nothing better.

I will investigate a little bit further and will post the answer (as supposed I 
find the answer... :s)

Best regards,
Sebastien.


On Fri, Aug 8, 2014 at 2:32 PM, Stefan Lindner stefan.lind...@visionet.de
wrote:

 Hi Sebastien,

 your file looks similar to mine. I can't remember any problems with 
 logging.Just worked out oft he box. Defining datasources, using own 
 libraries etc was a pain but logging was not.
 The only difference between you and me: i use the full profile which 
 you might require to use too wehen you think about EJBs persistence, 
 message queues etc.

 ---
 Stefan


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



Adding HTTP header settings if link is klicked

2013-06-24 Thread Stefan Lindner
I need to place a link to an external url in my wicket page. The
external site requires some special http header parameters (e.g.
X-Redmine-API-Key) for authentication.

 

It it possible to modify the outgoing request an add the header
parameter?

 

Thank you

Stefan



AW: Adding HTTP header settings if link is klicked

2013-06-24 Thread Stefan Lindner
Yes! But then you have access to exactly tot he on wiki page that's in your 
url. Following on any other link in the wiki page leads tot he login page. 
Roumors say that this'nt the case when the requrst contains X-Redmine-API-Key 
in header.
But we found another solution by performing a secrt login with a hidden form.
Thank you all for answering.

Stefan

-Ursprüngliche Nachricht-
Von: Joachim Schrod [mailto:jsch...@acm.org] 
Gesendet: Montag, 24. Juni 2013 19:33
An: users@wicket.apache.org
Betreff: Re: Adding HTTP header settings if link is klicked

Stefan Lindner wrote:
 I need to place a link to an external url in my wicket page. The 
 external site requires some special http header parameters (e.g.
 X-Redmine-API-Key) for authentication.

Doesn't the external URL support Redmine's standard parameter key
instead of the HTTP request header, too?

Joachim

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod, Roedermark, Germany
Email: jsch...@acm.org


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


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



AW: Open page in new window when clicking on button

2012-05-03 Thread Stefan Lindner
If this really ist he HTML code that you use, you should terminate your input 
tages with /
div align=center
input type=submit wicket:id=back /
input type=submit wicket:id=display 
onclick=target='_blank';return true;/
/div

Have you checked (yuse debug tool of your browser) waht html code is used by 
your browser? Sometimes (e.g. chrome) browsers are quite smart and they 
re-arrange html code when somehtin is wrong.

Stefan


-Ursprüngliche Nachricht-
Von: laine78 [mailto:meldsa...@hotmail.com] 
Gesendet: Donnerstag, 3. Mai 2012 21:40
An: users@wicket.apache.org
Betreff: Re: Open page in new window when clicking on button

I edited my html file to look like this
div align=center
input type=submit wicket:id=back 
input type=submit wicket:id=display 
onclick=target='_blank';return true;
/div

The display button now opens up a page in a new window.  Now he issue is at any 
point after I click the display button, the back button also opens up pages in 
new windows.  How do I go about resetting target in the onclick of the back 
button ie. 
input type=submit wicket:id=bak
onclick=target=

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Open-page-in-new-window-when-clicking-on-button-tp4606719p4606940.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


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



AW: AW: Open page in new window when clicking on button

2012-05-03 Thread Stefan Lindner
Something must be wrong in your HTML code. What you posted ist not a valid HTML 
code.
E.g. 

type=submit Back/button

There is something wrong! And I'm surprised to see

xmlns:wicket=http://wicket.apache.org;

inside your button tag.


-Ursprüngliche Nachricht-
Von: laine78 [mailto:meldsa...@hotmail.com] 
Gesendet: Donnerstag, 3. Mai 2012 21:54
An: users@wicket.apache.org
Betreff: Re: AW: Open page in new window when clicking on button

I went ahead and terminated the tags with / Here is the html code generated by 
my browser.  Everything looks okay to me as best as I can tell.

div align=center
button id=back2d class= xmlns:wicket=http://wicket.apache.org;
value=Back name=back type=submit Back/button button id=display2e 
class= xmlns:wicket=http://wicket.apache.org;
value=Print name=print onclick=target='_blank';return true;
type=submit Display/button
/div

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Open-page-in-new-window-when-clicking-on-button-tp4606719p4606960.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


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



AW: Eclipse-IDE Plugin Wicket Bench not existing (any more)?

2012-03-24 Thread Stefan Lindner
It's dead. Someone tried to continue i tat 
http://sourceforge.net/projects/stump/ but no release is available.

-Ursprüngliche Nachricht-
Von: Ben Stover [mailto:bxsto...@yahoo.co.uk] 
Gesendet: Samstag, 24. März 2012 01:32
An: Wicket Users
Betreff: Eclipse-IDE Plugin Wicket Bench not existing (any more)?

When I go to page 

http://wicket.apache.org/learn/ides.html

and click on Wicket Bench link for Eclipse then this link goes to nowhere.

Is this project out of date/closed?

Ben







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


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



AW: Is there a GUI Builder for Wicket which generates Wicket java code?

2012-03-24 Thread Stefan Lindner
There are a lot of GUI builder tools for Wicket. Any visual HTML editor will do 
what you need. You write HTML files and connet them with java code via
Wicket:id=someId attributes in your html.
Not Java generatest he GUI, the GUI is generated by a HTML Designer (man or 
machine). The programming logic is done with java.

-Ursprüngliche Nachricht-
Von: Ben Stover [mailto:bxsto...@yahoo.co.uk] 
Gesendet: Samstag, 24. März 2012 01:36
An: Wicket Users
Betreff: Is there a GUI Builder for Wicket which generates Wicket java code?

Sorry for this newbie question.

From what I read so far Wicket users have to write at first java code which 
leads to a GUI front end.

Is there a GUI builder tool for the opposite direction?

I would like to click and design visually (!) a GUI and let this GUI builder 
generate later the corresponding java code.

Is this possible?

Thank you
Ben



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


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



AW: adjust my web application for smartphone like iPhone

2011-12-26 Thread Stefan Lindner
This is a css case. Just query the web for css media query and you will find 
lots of examples for resolution dependant css styling.

-Ursprüngliche Nachricht-
Von: mili [mailto:mili...@yahoo.de] 
Gesendet: Montag, 26. Dezember 2011 17:33
An: users@wicket.apache.org
Betreff: adjust my web application for smartphone like iPhone

I want to adjust my web application for smartphones. have wicket a function, 
who the app can ajust automatically the size of the content.

Thank you for your Help!



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/adjust-my-web-application-for-smartphone-like-iPhone-tp4235060p4235060.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


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



Suppress page serialization

2011-12-14 Thread Stefan Lindner
Given is a Page 0 with an object. The object has a given value X;

On the Page 0 resides an AjaxLink that opens a new Page 1 in a Wicket 
ModalWindow. The Content is a Page, not a Panel.
Page 1 knows the object, the object is a parameter in page constructor.

Modifying object to Y and closing page 1 lets the object's value to be Y in 
Page 0. Fine.

Now I Place an AjaxLink on Page 1 that opens a new Page 2. Page 2 knows the 
object as well.
Page 0 - klick - Page 1 - klick - Page 2 - set object to Z - close Page 2 
- close Page 1 - back on Page 0
Now the value is still X. The object tzat was passed to Page 1 and the to Page 
2 an that was modified in Page 2 lost ists modification back on Page 0.

All Pages are set to versioned(false).

We use Wicket 1.4.19.

Any idea?

Stefan



RE: Suppress page versioning [was: Suppress page serialization]

2011-12-14 Thread Stefan Lindner
Yes, Pedro, putting things into Session would would work around this. But I 
would need to put everything into Session manually. Isn't there any trick that 
prohibits Components from being versioned? We don't need any backbutton support 
at all. We jut want to keep the page the same unchanged object during the 
page's lifetime. Passing objects from that page over to another and another and 
anotehr page an klick and submit and and and... and the page's model/date stays 
unchanged until the program code changes them?

Is there a starting point of documentation what exactly happens there and why 
this happens only when a second Modalwindow is opened?+

Stefan

-Ursprüngliche Nachricht-
Von: Pedro Santos [mailto:pedros...@gmail.com] 
Gesendet: Mittwoch, 14. Dezember 2011 17:13
An: users@wicket.apache.org
Betreff: Re: Suppress page serialization

Hi Stefan, does it makes sense to move this object to the session?
Make sure you make your page instance manager touching each affected page after 
to change the object. e.g. Session.get().touch(affectedPage);

Pedro Henrique Oliveira dos Santos


2011/12/14 Stefan Lindner lind...@visionet.de

 Given is a Page 0 with an object. The object has a given value X;

 On the Page 0 resides an AjaxLink that opens a new Page 1 in a Wicket 
 ModalWindow. The Content is a Page, not a Panel.
 Page 1 knows the object, the object is a parameter in page constructor.

 Modifying object to Y and closing page 1 lets the object's value to be 
 Y in Page 0. Fine.

 Now I Place an AjaxLink on Page 1 that opens a new Page 2. Page 2 
 knows the object as well.
 Page 0 - klick - Page 1 - klick - Page 2 - set object to Z - 
 close Page 2 - close Page 1 - back on Page 0 Now the value is still 
 X. The object tzat was passed to Page 1 and the to Page 2 an that was 
 modified in Page 2 lost ists modification back on Page 0.

 All Pages are set to versioned(false).

 We use Wicket 1.4.19.

 Any idea?

 Stefan



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



RE: Generate PDF

2011-07-13 Thread Stefan Lindner
Here is my code for generating PDF from AjaxLink in a seperate window



public abstract class AjaxPdfGenerationIconPanelT extends Serializable 
extends AbstractPdfGenerationPanelT {

private static final long serialVersionUID = 1L;

private final SimpleAttributeModifier[] behaviors;

public AjaxPdfGenerationIconPanel(final String id, final IModelT 
model, SimpleAttributeModifier...behaviors) {
super(id, model);

this.behaviors = behaviors;


final AJAXDownload download = new AJAXDownload();
add(download);


AjaxLinkT pdfLink = new AjaxLinkT(pdf) {
private static final long serialVersionUID = 1L;
@Override
public void onClick(AjaxRequestTarget target) {
AjaxPdfGenerationIconPanel.this.onClick(target);

download.initiate(target);
}
};


pdfLink.add(getIcon(icon));

add(pdfLink);
}


protected VImage getIcon(final String id) {
return new VImage(id, Icons.drucken25x25, behaviors);
}


private class AJAXDownload extends AbstractAjaxBehavior {
private static final long serialVersionUID = 1L;

public void initiate(AjaxRequestTarget target) {
target.appendJavascript(window.open(' + 
getCallbackUrl() + ', '', 
'scrollbars=yes,location=no,menuBar=no,resizable=yes,status=no,toolbar=no')); 
}

public void onRequest() {
getComponent().getRequestCycle().setRequestTarget(new 
ResourceStreamRequestTarget(new MyResourceStreamWriter()));
}
}



protected void onClick(final AjaxRequestTarget target) { }

}














=== and ==



import java.io.OutputStream;
import java.io.Serializable;

import org.apache.wicket.model.IModel;
import org.apache.wicket.util.resource.AbstractResourceStreamWriter;

import de.visionet.wicket.wrapper.VPanel;


abstract class AbstractPdfGenerationPanelT extends Serializable extends 
VPanelT {

private static final long serialVersionUID = 1L;

public AbstractPdfGenerationPanel(final String id, final IModelT 
model) {
super(id, model);
}

public class MyResourceStreamWriter extends 
AbstractResourceStreamWriter {
private static final long serialVersionUID = 1L;

public MyResourceStreamWriter() {
}

@Override
public void write(final OutputStream output) {
getOutput(output, getModel());
try {
output.flush();
} catch (Exception e) {
e.printStackTrace();
}
}

@Override
public String getContentType() {
return application/pdf;
}
}



protected abstract void getOutput(final OutputStream output, IModelT 
model);

}


-Ursprüngliche Nachricht-
Von: ramlael [mailto:grambab...@gmail.com] 
Gesendet: Mittwoch, 13. Juli 2011 15:39
An: users@wicket.apache.org
Betreff: Re: Generate PDF

Hi, its working fine with normal link, but not with ajax link, any idea about 
this problem?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Generate-PDF-tp3651354p3665040.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


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



LazyLoad Panel in Wicket 1.4.14

2011-03-16 Thread Stefan Lindner
Does anybody else have problems with LazyLoadPanel? Moving from 1.4.13
to 1.4. 16 breaks alls LazyLoadPanles in our applications (endless
loading).

-- Stefan

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



AW: German umlauts in Wicket-Message Tag

2011-03-02 Thread Stefan Lindner
As I remember, Wicket/Java uses .properties files for this message texts. And 
by definition, a .properties file is always in ISO-88xxx

See http://download.oracle.com/javase/6/docs/api/java/util/Properties.html

If you don't want to excape all german umlauts, there is a way to use XML files 
for properties. In this XML file you can specify the encoding.

Stefan

-Ursprüngliche Nachricht-
Von: Weather [mailto:ng...@mac.com] 
Gesendet: Mittwoch, 2. März 2011 11:42
An: users@wicket.apache.org
Betreff: Re: German umlauts in Wicket-Message Tag

Did you try to escape it?


-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.


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



Session size with ModalWindow

2011-02-25 Thread Stefan Lindner
We have a modal window (not matter Panel oder Page as content) which
holds a lot of AjaxLinks. Each time an AjaxLink is clicked the session
grows. Is there a way to suppress the versioning of the session and
page? It's the PageMap that is growing.

The ModalWindow does not hold any explicit reference to a page oder
another component on the page.

Stefan

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



RE: Session size with ModalWindow

2011-02-25 Thread Stefan Lindner
You're right, using a panel as modal window's content is a little bit better. 
The session grows slower but it grows infinitely. 
Setting setVersioned to false did not make any difference. Any other idea?

Stefan

-Ursprüngliche Nachricht-
Von: Martin Grigorov [mailto:mgrigo...@apache.org] 
Gesendet: Freitag, 25. Februar 2011 10:55
An: users@wicket.apache.org
Betreff: Re: Session size with ModalWindow

I have experienced memory problems before with Page backed ModalWindow, so I'd 
recommend Panel backed.
About versioning see Component.setVersioned(false).

On Fri, Feb 25, 2011 at 11:45 AM, Stefan Lindner lind...@visionet.dewrote:

 We have a modal window (not matter Panel oder Page as content) which 
 holds a lot of AjaxLinks. Each time an AjaxLink is clicked the session 
 grows. Is there a way to suppress the versioning of the session and 
 page? It's the PageMap that is growing.

 The ModalWindow does not hold any explicit reference to a page oder 
 another component on the page.

 Stefan

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




AW: Session size with ModalWindow

2011-02-25 Thread Stefan Lindner
Sigh! Ok, thank you for the below example. I will dig into the memory pool.

Stefan

-Ursprüngliche Nachricht-
Von: Martin Grigorov [mailto:mgrigo...@apache.org] 
Gesendet: Freitag, 25. Februar 2011 11:20
An: users@wicket.apache.org
Betreff: Re: Session size with ModalWindow

I guess you have a cyclic reference somewhere...
You'll need to use memory analyzer to check which objects contribute to the 
growing size.

See Eclipse Memory Analyzer (http://www.eclipse.org/mat/) or jhat (comes with 
the JDK):

1. In jconsole - call GC
2. jmap -dump:live,format=b,file=heap.bin PID
  (captures the initial state)
3. Click on any of the links to make the session grow 4. jmap 
-dump:live,format=b,file=heap2.bin PID
 (captures a state with memory leak)

jhat -J-mx768m heap.bin
  (to read and analyze the heap dump)


On Fri, Feb 25, 2011 at 12:09 PM, Stefan Lindner lind...@visionet.dewrote:

 You're right, using a panel as modal window's content is a little bit 
 better. The session grows slower but it grows infinitely.
 Setting setVersioned to false did not make any difference. Any other idea?

 Stefan

 -Ursprüngliche Nachricht-
 Von: Martin Grigorov [mailto:mgrigo...@apache.org]
 Gesendet: Freitag, 25. Februar 2011 10:55
 An: users@wicket.apache.org
 Betreff: Re: Session size with ModalWindow

 I have experienced memory problems before with Page backed 
 ModalWindow, so I'd recommend Panel backed.
 About versioning see Component.setVersioned(false).

 On Fri, Feb 25, 2011 at 11:45 AM, Stefan Lindner lind...@visionet.de
 wrote:

  We have a modal window (not matter Panel oder Page as content) which 
  holds a lot of AjaxLinks. Each time an AjaxLink is clicked the 
  session grows. Is there a way to suppress the versioning of the 
  session and page? It's the PageMap that is growing.
 
  The ModalWindow does not hold any explicit reference to a page oder 
  another component on the page.
 
  Stefan
 
  
  - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



RE: JWicket drag/drop handle

2011-02-01 Thread Stefan Lindner
You are right! jWicket is missing a setHandle method. I will implement this 
in the future. For now you can use the setRawOption() method for all 
unimplemented options. In your case you sould try

setRawOptions(cancel:'p.ui-widget-header' );

Stefan

-Ursprüngliche Nachricht-
Von: flavius [mailto:flav...@silverlion.com] 
Gesendet: Dienstag, 1. Februar 2011 05:17
An: users@wicket.apache.org
Betreff: JWicket drag/drop handle



I'm trying to create a widget/gadget (similar to google's home page or yahoo).
I've got it largely figured out except for one thing.  I'm trying to restrict 
the drag operation to just the top div (the header).  So my widget will look 
like this:

div class=widget
  div class=wheaderDrag here/div
  div class=wbodystuff goes here.../div /div

This functionality is described in JQuery here:
http://jqueryui.com/demos/draggable/#handle

It seems like DraggableBehavior should have a setHandle method so I can define 
the draggable region.

Any thoughts?
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/JWicket-drag-drop-handle-tp3250469p3250469.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


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



AW: Getting the application path

2010-12-31 Thread Stefan Lindner
Use something like Applicatiion.get().getServletContext().getRealPath(.);

Stefan

-Ursprüngliche Nachricht-
Von: Josh Kamau [mailto:joshnet2...@gmail.com] 
Gesendet: Freitag, 31. Dezember 2010 09:12
An: users@wicket.apache.org
Betreff: Getting the application path

Hi,

I am having a little headache here, How do i get the complete path of the 
application root from withing a wicket page.  i would like to get something 
like c:\tomcat\webapps\wicketapp\resources\file.pdf

Kind regards.
Josh.

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



RE: Wicket JQuery drag and drop behaviors

2010-11-09 Thread Stefan Lindner
Did you take a look at jWicket 
(http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/jdk-1.5-parent/jwicket-parent/jwicket-ui/jwicket-ui-dragdrop)?

-Ursprüngliche Nachricht-
Von: armandoxxx [mailto:armando@dropchop.com] 
Gesendet: Dienstag, 9. November 2010 14:08
An: users@wicket.apache.org
Betreff: Wicket JQuery drag and drop behaviors


Hey 

Just needed this so I wrote a simple implementation of Drag and Drop for JQuery 
javascript lib. 

So if anyone needs it .. be my guest to comment (and/or diSS) on it  

Put on your page, app or anywhere else cause you need this !!!

wicket:head
wicket:linklink rel=stylesheet type=text/css
href=css/jquery/smoothness/jquery-ui-1.8.2.custom.css //wicket:link
wicket:linkscript type=text/javascript
src=js/jquery-1.4.3.min.js/script/wicket:link
wicket:linkscript type=text/javascript
src=js/jquery-ui-1.8.2.custom.min.js/script/wicket:link
/wicket:head


DraggableBehavior.java

/**
 *
 */
package org.dropchop.jop.dnd.behaviors.draggable;

import java.util.HashMap;
import java.util.Map;

import org.apache.wicket.Component;
import org.apache.wicket.behavior.AbstractAjaxBehavior;
import org.apache.wicket.markup.html.CSSPackageResource;
import org.apache.wicket.markup.html.IHeaderResponse;
import org.apache.wicket.util.template.PackagedTextTemplate;
import org.apache.wicket.util.template.TextTemplate;
import org.dropchop.jop.dnd.behaviors.droppable.DroppableBehavior;


/**
 * @author armando armando[DoT]ota[At]dropchop[DoT]com
 *
 */
public class DraggableBehavior extends AbstractAjaxBehavior {

private static final long serialVersionUID = -4879330165262306147L;

//JQuery options
private DragType dragType   = DragType.ORIGINAL;



/**
 * Drag type for jQuery helper.
 * CLONE - clones panel and after panel is droped cloned panel
dissapears.
 * ORIGINAL  - moves the original panel through the page.
 * @author armando armando@dropchop.com
 */
public enum DragType {
ORIGINAL(original), CLONE(clone);

private String type = null;

/**
 * Private constructor.
 * @param theType  jquery constant string
 */
private DragType(final String theType) {
this.type   = theType;
} 


/**
 * Gets JQuery drag type constant.
 * @return string.
 */
public String getType() {
return this.type;
}
}


/**
 * Sets drag type for draggable component
 * @param theType
 * @return  reference to itself for chaining.
 */
public DraggableBehavior setDragType(final DragType theType) {
this.dragType   = theType;
return this;
}


@Override
public void renderHead(final IHeaderResponse theResponse) {
super.renderHead(theResponse);

theResponse.renderOnDomReadyJavascript(this.getJavaScriptCode(this.getComponent()));
} 


@Override
protected void onBind() {
getComponent().setOutputMarkupId(true);
//uncomment this if you need styles for draggable component!

//getComponent().add(CSSPackageResource.getHeaderContribution(DroppableBehavior.class,
css/styles.css));
}


/**
 * Uses js file as a template and returns parsed output.
 * 
 * @param theComponentId  id of date time field component.
 * @return javascript code string.
 * 
 * Note: this might be a performance issue ... figure and test it 
out!!! 
 */
private String getJavaScriptCode(final Component theComponent) {
PackagedTextTemplate template = new 
PackagedTextTemplate(getClass(), js/DraggableBehavior.js, text/javascript);
MapString, Object params = new HashMapString, Object();
params.put(componentId, theComponent.getMarkupId());
params.put(helper, this.dragType.getType());
params.put(wicketPath, theComponent.getPageRelativePath());
TextTemplate interpolated = template.interpolate(params);
return interpolated.asString();
}


/* (non-Javadoc)
 * @see org.apache.wicket.behavior.IBehaviorListener#onRequest()
 */
@Override
public void onRequest() {}


}




DraggableBehavior.js  servers as a template for javascript code


$(#${componentId}).draggable(
{
cursor  : 

jWicket 0.6.4 released

2010-11-05 Thread Stefan Lindner
jWicket 0.6.4 is available in wicketstuff trunk for Wicket 1.4.x.
jWicket 0.6.4 brings to you
- jQuery 1.4.3
- jQuery UI 1.8.6 (fixes dragdrop after Ajax update)
- A lot of bug fixes (most of them for DatePicker)

Stefan

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



RE: FileUpload in ModalWindow

2010-11-04 Thread Stefan Lindner
It's not the FileUpload, it's the ProgressBar that breaks the FileUpload 
function. This problem exists since 1.4.11.

Stefan.

-Ursprüngliche Nachricht-
Von: Martin Grigorov [mailto:mgrigo...@apache.org] 
Gesendet: Donnerstag, 4. November 2010 21:04
An: users@wicket.apache.org
Betreff: Re: FileUpload in ModalWindow

1.4.11 has a known problem:
https://issues.apache.org/jira/browse/WICKET-3040
https://issues.apache.org/jira/browse/WICKET-3040That's why 1.4.12 was 
released soon after.

On Thu, Nov 4, 2010 at 7:26 PM, Wayne W waynemailingli...@gmail.com wrote:

 We're on 1.4.7 currently and when I tried 1.4.11 we had a few issues 
 with ajax - unfortunality we've not had time to really try and 
 understand the issue.
 I'll be interested if anyone else is having a problem.
 I know there was some work done in the ajax area, but I'm not sure 
 where to start looking.

 On Tue, Nov 2, 2010 at 10:45 AM, Stefan Lindner lind...@visionet.de
 wrote:
  To make it more clear: FileUpload with ProgressBar does not work at 
  all
 for me.  Not in FF not in IE. Without ProgressBar everything works well.
  This is a Problem since 1.4.11. In 1.4.10 it works well.
 
  Stefan
 

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




FileUpload in ModalWindow

2010-11-02 Thread Stefan Lindner
Does anybody use Ajax FileUpload in ModelWindow since Wicket 1.4.10? It does 
not work in 1.4.12 and 1.4.13. I did not see any significatn change in 
ChangeLog for this releases.

Stefan


RE: FileUpload in ModalWindow

2010-11-02 Thread Stefan Lindner
To make it more clear: FileUpload with ProgressBar does not work at all for me. 
 Not in FF not in IE. Without ProgressBar everything works well.
This is a Problem since 1.4.11. In 1.4.10 it works well.

Stefan


AW: Problems displaying a PDF from stream

2010-10-29 Thread Stefan Lindner
How does your trigger look like? I mean the a or button or input 
type=submit element? Does it trigger a page refresh, means does it start a 
request tot he server? Then you still have a problem with cleared session 
cookie.
You need something like div onclick=openURL(bookmarkableURLWithParameters)/ 
or  more in detail


div onclick= window.open('http://url.to.servlet.domain', '', 
'scrollbars=yes,location=no,menuBar=no,resizable=yes,status=no,toolbar=no') /

No request cycle is triggered, the page stays untouched you can clear the 
session cookie as often as you like

I did not proof this but I thin this could be te right way.

Stefan

-Ursprüngliche Nachricht-
Von: Alex Zeit [mailto:zeita...@googlemail.com] 
Gesendet: Freitag, 29. Oktober 2010 14:22
An: users@wicket.apache.org
Betreff: Re: Problems displaying a PDF from stream

I mean going to menu Clear private data (in German version it is Neueste 
Chronik löschen). Yes Cookies are also removed.
For now I implemented my PDF generator as separate Servlet but it has same 
behaviour unless I disable caching:
// Set to expire far in the past.
response.setHeader(Expires, Sat, 6 May 1995 12:00:00 GMT);
if(request.getHeader(User-Agent).contains(MSIE)){
// Set IE extended HTTP/1.1 no-cache headers (use addHeader).
response.addHeader(Cache-Control, post-check=0, pre-check=0);
}else{
// Set standard HTTP/1.1 no-cache headers.
// 29.10.10 OE Not working with IE 7
response.setHeader(Cache-Control, no-store, no-cache, 
must-revalidate);
}
// Set IE extended HTTP/1.1 no-cache headers (use addHeader).
response.addHeader(Cache-Control, post-check=0, pre-check=0);
// Set standard HTTP/1.0 no-cache header.
response.setHeader(Pragma, no-cache);

I don't really like this workaround with checking User agnet. But it is only 
way to make it work properly with Firefox and IE.


2010/10/28 Stefan Lindner lind...@visionet.de

 What do you mean with After clearing chronik? Does this mean that 
 the session cookie is lost after After clearing chronik?
 You may take a look at the generated HTML:


  
 Onclick=.?wicket:interface=:5:.:pdfIcon:pdf::ILinkListener::

 This refers to a version oft he page that is no longer valid after the 
 session is lost. Refreshing the page starts a new session and it works 
 again.
 You must (I don't know how at the moment) produce a sort of 
 bookemarkable url for this case I think. My guess would be to use a 
 separate servlet for this.

 Stefan

 -Ursprüngliche Nachricht-
 Von: Alex Zeit [mailto:zeita...@googlemail.com]
 Gesendet: Donnerstag, 28. Oktober 2010 18:21
 An: users@wicket.apache.org
 Betreff: Re: Problems displaying a PDF from stream

 Now it works with IE and this is most important thing. Thank you very much!
 However the problem with Firefox remains. After clearing chronik while 
 Pdf document is open if I click the link comes page expired, after 
 refreshing the main page with link if I click link again comes empty page.

 2010/10/28 Alex Zeit zeita...@googlemail.com

  Thanks a lot Stefan I will try it right now
 
 
  2010/10/28 Stefan Lindner lind...@visionet.de
 
  Try this:
 
 
 
 public class MyResourceStreamWriter extends 
  AbstractResourceStreamWriter {
 private static final long serialVersionUID = 1L;
 
 public MyResourceStreamWriter() {
 }
 
 @Override
 public void write(final OutputStream output) {
 // ! prduce output here and stream it to
 output
 try {
 output.flush();
 } catch (Exception e) {
 e.printStackTrace();
 }
 }
 
 @Override
  public String getContentType() {
 return application/pdf;
 }
 }
 
 
 
 
 
  LinkT pdfLink = new LinkT(pdf) {
 private static final long serialVersionUID = 1L;
 @Override
 public void onClick() {
 ResourceStreamRequestTarget rsrt = new 
  ResourceStreamRequestTarget(new MyResourceStreamWriter());
 //rsrt.setFileName(file.pdf); // use this 
  if yout want your browser to ask you wheter you want to save the 
  cownloaded PDF in fil efile.pdf
 getRequestCycle().setRequestTarget(rsrt);
 }
 };
 
 
 pdfLink.setPopupSettings(new 
  PopupSettings(PopupSettings.RESIZABLE
  | PopupSettings.SCROLLBARS));
 add(pdfLink);
 
 
  Stefan
 
 
  -Ursprüngliche Nachricht-
  Von: Alex Zeit [mailto:zeita...@googlemail.com]
  Gesendet: Donnerstag, 28. Oktober 2010 15:21
  An: users@wicket.apache.org
  Betreff: Re: Problems

AW: set focus in Modal Window

2010-10-29 Thread Stefan Lindner
Try this:


public class FocusBehavior extends AbstractBehavior {

private static final long serialVersionUID = 1L;

private Component component;

@Override
public void bind(final Component component) {
this.component = component;
component.setOutputMarkupId(true);
}

@Override
public void renderHead(final IHeaderResponse response) {
response.renderOnDomReadyJavascript(document.getElementById(' 
+ component.getMarkupId() + ').focus(););
}

}



And do 

TextField bla = new Textfield();
Bla.add(new FocusBeahvior());

Stefan

-Ursprüngliche Nachricht-
Von: Henry, Mike [GCG-PFS] [mailto:mike.he...@primerica.com] 
Gesendet: Freitag, 29. Oktober 2010 19:58
An: users@wicket.apache.org
Betreff: set focus in Modal Window

I have successfully set the focus on a text field in a Modal window but after 
it is closed and re-opened it no longer sets the focus to that field. If I 
reload the whole parent page it will work once but again If the modal window is 
closed and re-opened same problem. I have tried all of these with the same 
result:
target.appendJavascript(document.findRepform.searchString.focus(););

target.focusComponent(((FindRepDetailsPanel)selectModalWindow.get(conte
nt)).get(findRepform:searchString));

((FindRepDetailsPanel)selectModalWindow.get(content)).get(findRepform
:searchString).add(new DefaultFocusBehavior())

 

Any ideas?
 
Thanks
Mike

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



AW: Problems displaying a PDF from stream

2010-10-28 Thread Stefan Lindner
Do you want to open the PDF in a separate window? Klick on some button and open 
a new browser window with pdf?

Stefan

-Ursprüngliche Nachricht-
Von: Alex Zeit [mailto:zeita...@googlemail.com] 
Gesendet: Donnerstag, 28. Oktober 2010 15:14
An: users@wicket.apache.org
Betreff: Problems displaying a PDF from stream

While trying to display a PDF document from stream following problems
arrise:
IE7:
Resource can not be displaied at all.

Firefox 3.6.12:
PDF is displaied but if Chronk is cleared in Firefox while document is open 
then it cannot be displaied again. It is possible only after restarting Firefox.

No errors in log.

The code:
public class PdfGen extends WebResource {

public PdfGen() {
setCacheable(false);
}

@Override
public IResourceStream getResourceStream() {
IResourceStream resourceStream = new AbstractResourceStreamWriter() {
private static final long serialVersionUID = 1934248394380163944L;
public void write(OutputStream output) {
testItextDirect(output);
}
public String getContentType() {
return application/pdf;
}
};
return resourceStream;
}

private void testItextDirect(OutputStream output){
try {
Document document = new Document();
PdfWriter.getInstance(document, output);
document.open();
document.add(new Paragraph(Hello World));
document.add(new Paragraph(new Date().toString()));
document.close();
} catch (DocumentException de) {
try {
throw new IOException(de.getMessage());
} catch (IOException e) {
e.printStackTrace();
}
}
}
}


in the init() of AuthenticatedWebApplication SharedResource added like this:
getSharedResources().add(pdfGen, new PdfGen());

Any help would be highly appreciated
Alex

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



AW: Problems displaying a PDF from stream

2010-10-28 Thread Stefan Lindner
Try this:



public class MyResourceStreamWriter extends 
AbstractResourceStreamWriter {
private static final long serialVersionUID = 1L;

public MyResourceStreamWriter() {
}

@Override
public void write(final OutputStream output) {
// ! prduce output here and stream it to output
try {
output.flush();
} catch (Exception e) {
e.printStackTrace();
}
}

@Override
public String getContentType() {
return application/pdf;
}
}





LinkT pdfLink = new LinkT(pdf) {
private static final long serialVersionUID = 1L;
@Override
public void onClick() {
ResourceStreamRequestTarget rsrt = new 
ResourceStreamRequestTarget(new MyResourceStreamWriter());
//rsrt.setFileName(file.pdf); // use this if yout 
want your browser to ask you wheter you want to save the cownloaded PDF in fil 
efile.pdf
getRequestCycle().setRequestTarget(rsrt);
}
};


pdfLink.setPopupSettings(new PopupSettings(PopupSettings.RESIZABLE | 
PopupSettings.SCROLLBARS));
add(pdfLink);


Stefan


-Ursprüngliche Nachricht-
Von: Alex Zeit [mailto:zeita...@googlemail.com] 
Gesendet: Donnerstag, 28. Oktober 2010 15:21
An: users@wicket.apache.org
Betreff: Re: Problems displaying a PDF from stream

Yes

2010/10/28 Stefan Lindner lind...@visionet.de

 Do you want to open the PDF in a separate window? Klick on some button 
 and open a new browser window with pdf?

 Stefan

 -Ursprüngliche Nachricht-
 Von: Alex Zeit [mailto:zeita...@googlemail.com]
 Gesendet: Donnerstag, 28. Oktober 2010 15:14
 An: users@wicket.apache.org
 Betreff: Problems displaying a PDF from stream

 While trying to display a PDF document from stream following problems
 arrise:
 IE7:
 Resource can not be displaied at all.

 Firefox 3.6.12:
 PDF is displaied but if Chronk is cleared in Firefox while document is 
 open then it cannot be displaied again. It is possible only after 
 restarting Firefox.

 No errors in log.

 The code:
 public class PdfGen extends WebResource {

public PdfGen() {
setCacheable(false);
}

@Override
public IResourceStream getResourceStream() {
IResourceStream resourceStream = new 
 AbstractResourceStreamWriter() {
private static final long serialVersionUID = 
 1934248394380163944L;
public void write(OutputStream output) {
testItextDirect(output);
}
public String getContentType() {
return application/pdf;
}
};
return resourceStream;
}

private void testItextDirect(OutputStream output){
try {
Document document = new Document();
PdfWriter.getInstance(document, output);
document.open();
document.add(new Paragraph(Hello World));
document.add(new Paragraph(new Date().toString()));
document.close();
} catch (DocumentException de) {
try {
throw new IOException(de.getMessage());
} catch (IOException e) {
e.printStackTrace();
}
}
}
 }


 in the init() of AuthenticatedWebApplication SharedResource added like
 this:
 getSharedResources().add(pdfGen, new PdfGen());

 Any help would be highly appreciated
 Alex

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



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



AW: Problems displaying a PDF from stream

2010-10-28 Thread Stefan Lindner
What do you mean with After clearing chronik? Does this mean that the session 
cookie is lost after After clearing chronik?
You may take a look at the generated HTML:


Onclick=.?wicket:interface=:5:.:pdfIcon:pdf::ILinkListener::

This refers to a version oft he page that is no longer valid after the session 
is lost. Refreshing the page starts a new session and it works again.
You must (I don't know how at the moment) produce a sort of bookemarkable url 
for this case I think. My guess would be to use a separate servlet for this.

Stefan

-Ursprüngliche Nachricht-
Von: Alex Zeit [mailto:zeita...@googlemail.com] 
Gesendet: Donnerstag, 28. Oktober 2010 18:21
An: users@wicket.apache.org
Betreff: Re: Problems displaying a PDF from stream

Now it works with IE and this is most important thing. Thank you very much!
However the problem with Firefox remains. After clearing chronik while Pdf 
document is open if I click the link comes page expired, after refreshing the 
main page with link if I click link again comes empty page.

2010/10/28 Alex Zeit zeita...@googlemail.com

 Thanks a lot Stefan I will try it right now


 2010/10/28 Stefan Lindner lind...@visionet.de

 Try this:



public class MyResourceStreamWriter extends 
 AbstractResourceStreamWriter {
private static final long serialVersionUID = 1L;

public MyResourceStreamWriter() {
}

@Override
public void write(final OutputStream output) {
// ! prduce output here and stream it to output
try {
output.flush();
} catch (Exception e) {
e.printStackTrace();
}
}

@Override
 public String getContentType() {
return application/pdf;
}
}





 LinkT pdfLink = new LinkT(pdf) {
private static final long serialVersionUID = 1L;
@Override
public void onClick() {
ResourceStreamRequestTarget rsrt = new 
 ResourceStreamRequestTarget(new MyResourceStreamWriter());
//rsrt.setFileName(file.pdf); // use this if 
 yout want your browser to ask you wheter you want to save the 
 cownloaded PDF in fil efile.pdf
getRequestCycle().setRequestTarget(rsrt);
}
};


pdfLink.setPopupSettings(new 
 PopupSettings(PopupSettings.RESIZABLE
 | PopupSettings.SCROLLBARS));
add(pdfLink);


 Stefan


 -Ursprüngliche Nachricht-
 Von: Alex Zeit [mailto:zeita...@googlemail.com]
 Gesendet: Donnerstag, 28. Oktober 2010 15:21
 An: users@wicket.apache.org
 Betreff: Re: Problems displaying a PDF from stream

 Yes

 2010/10/28 Stefan Lindner lind...@visionet.de

  Do you want to open the PDF in a separate window? Klick on some 
  button and open a new browser window with pdf?
 
  Stefan
 
  -Ursprüngliche Nachricht-
  Von: Alex Zeit [mailto:zeita...@googlemail.com]
  Gesendet: Donnerstag, 28. Oktober 2010 15:14
  An: users@wicket.apache.org
  Betreff: Problems displaying a PDF from stream
 
  While trying to display a PDF document from stream following 
  problems
  arrise:
  IE7:
  Resource can not be displaied at all.
 
  Firefox 3.6.12:
  PDF is displaied but if Chronk is cleared in Firefox while document 
  is open then it cannot be displaied again. It is possible only 
  after restarting Firefox.
 
  No errors in log.
 
  The code:
  public class PdfGen extends WebResource {
 
 public PdfGen() {
 setCacheable(false);
 }
 
 @Override
 public IResourceStream getResourceStream() {
 IResourceStream resourceStream = new
  AbstractResourceStreamWriter() {
 private static final long serialVersionUID = 
  1934248394380163944L;
 public void write(OutputStream output) {
 testItextDirect(output);
 }
 public String getContentType() {
 return application/pdf;
 }
 };
 return resourceStream;
 }
 
 private void testItextDirect(OutputStream output){
 try {
 Document document = new Document();
 PdfWriter.getInstance(document, output);
 document.open();
 document.add(new Paragraph(Hello World));
 document.add(new Paragraph(new Date().toString()));
 document.close();
 } catch (DocumentException de) {
 try {
 throw new IOException(de.getMessage());
 } catch (IOException e) {
 e.printStackTrace();
 }
 }
 }
  }
 
 
  in the init() of AuthenticatedWebApplication SharedResource added 
  like
  this:
  getSharedResources().add(pdfGen, new PdfGen());
 
  Any help

RE: AjaxLazyLoadPanel IE and chrome

2010-10-22 Thread Stefan Lindner
Are you using jQuery?
Yesterday I would have answered that I never had any problems with 
AjaxLazyLoadPanel in IE/chrome. And we make heavy use o fit.
But today we moved from jQuery 1.4.2 to 1.4.3 and now we have the same problem. 
Sometimes a AjaxLazyLoadPanel loads until eternity. Hitting f5 loads the page. 

Stefan

-Ursprüngliche Nachricht-
Von: fachhoch [mailto:fachh...@gmail.com] 
Gesendet: Donnerstag, 21. Oktober 2010 20:56
An: users@wicket.apache.org
Betreff: AjaxLazyLoadPanel IE and chrome


sometimes AjaxLazyLoadPanel does not load in IE  and chrome , I am using wicket 
1.4.8.
I have to hit refresh several time to load the  lazypanel. 

Please advice me.
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadPanel-IE-and-chrome-tp3006112p3006112.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


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



RE: http://dev.jqueryui.com/ticket/5722#comment:3

2010-10-20 Thread Stefan Lindner
I was in doubt when I read this because I fixed the problem in jQuery 
1.4.2.core and not in the UI part. But in addition to ui 1.8.5 there is a new 
core version 1.4.3. I checked both oft them together and it seems to be fixed!
I will install a new Version of jWicket in the next few days so that everyone 
may test it in his own project.

Stefan

-Ursprüngliche Nachricht-
Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] 
Gesendet: Mittwoch, 20. Oktober 2010 06:33
An: Stefan Lindner
Betreff: http://dev.jqueryui.com/ticket/5722#comment:3

Stefan,

Can you confirm this? Will do the same with wiQuery.

Cheers,

Ernesto

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



AW: Header requiring to be contributed through page load and not ajax...

2010-09-09 Thread Stefan Lindner
I use onDomReady functionality at many places in my jWicket jQuery-integration. 
I don't know of any general problem (no guarantee that there isn't one) with 
jQuery and Wickets onDomReady.
Of course you have to ensure that the library (and perhaps additional files) is 
loaded in correct order with other libraries of jQuery. Did you use a debugger 
(e.g. firebug) to examine your javascript behavior?

Stefan

-Ursprüngliche Nachricht-
Von: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] 
Gesendet: Donnerstag, 9. September 2010 22:42
An: users@wicket.apache.org
Betreff: Re: Header requiring to be contributed through page load and not 
ajax...

dunno then, you may want to talk to jquery people and see what they recommend. 
we cant really fire the onload event again because some scripts may have 
already been executed...like i said, see what jquery folks say.

-igor

On Thu, Sep 9, 2010 at 1:38 PM, Joseph Pachod josephpac...@thomas-daily.de 
wrote:
 instead of  $(document).ready(function() use wicket's
  iheadercontributor's response.writeondomreadyjavascriptthanks for the 
 answer

 I do so for my own stuff, but jquery plugin don't.

 similarly, the core jquery file import won't work when added through ajax.



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


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



RE: Question about Wicket and generics

2010-08-27 Thread Stefan Lindner
You are right james,

in opposite to Igor, our forms have FormVoid in about 1% oft hem.

Stefan

-Ursprüngliche Nachricht-
Von: jcar...@carmanconsulting.com [mailto:jcar...@carmanconsulting.com] Im 
Auftrag von James Carman
Gesendet: Freitag, 27. August 2010 17:38
An: users@wicket.apache.org
Betreff: Re: Question about Wicket and generics

On Fri, Aug 27, 2010 at 11:34 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 i have written plenty forms and about 99% of them have FormVoid.
 models on the form are just not that useful, its the fields  that 
 care.

That doesn't mean that's the way *everyone* uses them.  Then again, my way 
isn't necessarily the way everyone uses them either.  That's the great thing 
about Wicket.  It's flexible enough to let you skin your cat in any way you 
like.

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


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



RE: [wicketstuff-core] Notice of java5/java6 restructuring ahead of 1.4.10 release

2010-08-11 Thread Stefan Lindner
Wich compiler is used for java 1.5 builds? I just tested jWicket with Sun's 
1.5.0_22 on Windows and no errors where shown. Everything compiles without any 
problem. 

Stefan

-Ursprüngliche Nachricht-
Von: Michael O'Cleirigh [mailto:michael.ocleir...@rivulet.ca] 
Gesendet: Mittwoch, 11. August 2010 06:50
An: users@wicket.apache.org
Betreff: Re: [wicketstuff-core] Notice of java5/java6 restructuring ahead of 
1.4.10 release
Wichtigkeit: Hoch

Hello,

I have committed the changes related to moving the modules into seperate 
directories. Right now the hudson build server is not building snapshots 
correctly but I have just run through deploying them manually.  I also 
have to fine tune how the maven compiler plugin is configured as right 
now it requires a -Djava5home to point at the $JAVA_5_HOME for 
jdk-1.5-parent and -Djava6home to point at the $JAVA_6_HOME for 
jdk-1.6-parent but from what I can tell it should be possible to only 
define the $JAVA_HOME variable externally to maven.

As javaee-inject-parent had a dependency on a java 6 library it is the 
first project moved into the jdk-1.6-parent directory.

These were the other failing modules that will probably be moved to 
java6 for the 1.4.10 release:

/home/wicket/.hudson/jobs/Wicket Stuff Core 
Java5/workspace/wicketstuff-core/push-parent/push/src/main/java/org/wicketstuff/push/cometd/CometdAbstractBehavior.java:[15,-1]
 cannot access org.cometd.server.CometdServlet
bad class file: 
/home/wicket/.m2/repository/org/cometd/java/cometd-java-server/2.0.0.RC2/cometd-java-server-2.0.0.RC2.jar(org/cometd/server/CometdServlet.class)
class file has wrong version 50.0, should be 49.0


org.apache.maven.BuildFailureException: Compilation failure
/home/wicket/.hudson/jobs/Wicket Stuff Core 
Java5/workspace/wicketstuff-core/push-parent/push/src/main/java/org/wicketstuff/push/cometd/CometdAbstractBehavior.java:[15,-1]
 cannot access org.cometd.server.CometdServlet
bad class file: 
/home/wicket/.m2/repository/org/cometd/java/cometd-java-server/2.0.0.RC2/cometd-java-server-2.0.0.RC2.jar(org/cometd/server/CometdServlet.class)
class file has wrong version 50.0, should be 49.0


at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at 
org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at hudson.maven.agent.Main.launch(Main.java:165)
at hudson.maven.MavenBuilder.call(MavenBuilder.java:165)
at 
hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:708)
at 
hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:652)
at hudson.remoting.UserRequest.perform(UserRequest.java:114)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:270)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)

Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation 
failure
/home/wicket/.hudson/jobs/Wicket Stuff Core 
Java5/workspace/wicketstuff-core/push-parent/push/src/main/java/org/wicketstuff/push/cometd/CometdAbstractBehavior.java:[15,-1]
 cannot access org.cometd.server.CometdServlet
bad class file: 

DropDownChoice for opening a new Window

2010-07-29 Thread Stefan Lindner
Is it possible to have a DropDownChoice that responds to a new window
when selected? What I mean is

new DropDownChoiceT(...) {
protected void onSelectionChanged(Integer newSelection)
{
// Send response to a new open window as if
clicket to a Link with PopupSettings
}
}

Stefan

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



RE: DropDownChoice for opening a new Window

2010-07-29 Thread Stefan Lindner
Dear Pedro,

thank you! Do you have any code snipplet or just a function name for google?

Stefan

-Ursprüngliche Nachricht-
Von: Pedro Santos [mailto:pedros...@gmail.com] 
Gesendet: Donnerstag, 29. Juli 2010 22:21
An: users@wicket.apache.org
Betreff: Re: DropDownChoice for opening a new Window

Yes, use javascript to reach that functionality. For instance, you can add
an AjaxFormComponentUpdatingBehavior for the onchange event of your
DropDownChoice. At the onUpdate method implementation, you can append the
needed javascript to open your new window.

On Thu, Jul 29, 2010 at 4:58 PM, Stefan Lindner lind...@visionet.de wrote:

 Is it possible to have a DropDownChoice that responds to a new window
 when selected? What I mean is

new DropDownChoiceT(...) {
protected void onSelectionChanged(Integer newSelection)
 {
// Send response to a new open window as if
 clicket to a Link with PopupSettings
}
}

 Stefan

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




-- 
Pedro Henrique Oliveira dos Santos

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



RE: DropDownChoice for opening a new Window

2010-07-29 Thread Stefan Lindner
Thank you once again. I ended up with

wantOnChangeNotification true

and modify the onclick script from 

onchange=window.location.href='?wicket.

to

onchange=window.open('?wicket.

If anyone else ever needs this toos.

Stefan.

-Ursprüngliche Nachricht-
Von: Pedro Santos [mailto:pedros...@gmail.com] 
Gesendet: Donnerstag, 29. Juli 2010 22:32
An: users@wicket.apache.org
Betreff: Re: DropDownChoice for opening a new Window

The first javascript api that comes to my mind is the onclick method, you
can add on your page an Link component, with all PopupSettings of your need.
Then you send to browser some javascript like:
Wicket.$('linkmarkupid').onclick

On Thu, Jul 29, 2010 at 5:23 PM, Stefan Lindner lind...@visionet.de wrote:

 Dear Pedro,

 thank you! Do you have any code snipplet or just a function name for
 google?

 Stefan

 -Ursprüngliche Nachricht-
 Von: Pedro Santos [mailto:pedros...@gmail.com]
 Gesendet: Donnerstag, 29. Juli 2010 22:21
 An: users@wicket.apache.org
 Betreff: Re: DropDownChoice for opening a new Window

 Yes, use javascript to reach that functionality. For instance, you can add
 an AjaxFormComponentUpdatingBehavior for the onchange event of your
 DropDownChoice. At the onUpdate method implementation, you can append the
 needed javascript to open your new window.

 On Thu, Jul 29, 2010 at 4:58 PM, Stefan Lindner lind...@visionet.de
 wrote:

  Is it possible to have a DropDownChoice that responds to a new window
  when selected? What I mean is
 
 new DropDownChoiceT(...) {
 protected void onSelectionChanged(Integer newSelection)
  {
 // Send response to a new open window as if
  clicket to a Link with PopupSettings
 }
 }
 
  Stefan
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 


 --
 Pedro Henrique Oliveira dos Santos

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




-- 
Pedro Henrique Oliveira dos Santos

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



RE: How to pass context-param values to different WebPages ?

2010-07-14 Thread Stefan Lindner
Create a getMyName-method in Applicatoin class and call

Application.get().getMyName() in your page class

Stefan

-Ursprüngliche Nachricht-
Von: Madhan [mailto:madhan.sundarara...@tcs.com] 
Gesendet: Mittwoch, 14. Juli 2010 14:58
An: users@wicket.apache.org
Betreff: How to pass context-param values to different WebPages ?


 I am new to wicket. 
  
 I have created a simple web-app which displays my name in a label. 
  
 However, when I wanted to extend the web app by fetching my name from
web.xml, though I was able to get the context parameters in the init method
of the application class, I am not sure how to send the value to the
webpage. 
  
 Kindly let me know how to pass the context parameter from the application
class to the webpage class. 
  
 My development environment for Wicket 1.4.9 is as follows, 
  
OS : Windows XP SP3 
App Server : apache-tomcat-6.0.26 
JDK : 1.6.0_17 

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-pass-context-param-values-to-different-WebPages-tp2288699p2288699.html
Sent from the Wicket - User 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


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



RE: How to pass context-param values to different WebPages ?

2010-07-14 Thread Stefan Lindner
Your are new to Java too?
Did you override the get() method in your IndexApplication? If not, 
IndexApplication.get results in an Applicationobject and not in an 
IndexApplication object. Either cast it in your opage oder create your own get 
methodn in IndexApplication.


add( new Label( userName, 
((IndexApplication)(IndexApplication.get())).getUserName() ) );

-Ursprüngliche Nachricht-
Von: Madhan [mailto:madhan.sundarara...@tcs.com] 
Gesendet: Mittwoch, 14. Juli 2010 15:29
An: users@wicket.apache.org
Betreff: RE: How to pass context-param values to different WebPages ?


I tried the following statement in the constructor of my WebPage class,

add( new Label( userName, (IndexApplication.get()).getUserName() ) );

I got the following error,
IndexPage.java:10: cannot find symbol
symbol  : method getUserName()

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-pass-context-param-values-to-different-WebPages-tp2288699p2288744.html
Sent from the Wicket - User 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


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



jWicket 0.6.1

2010-07-14 Thread Stefan Lindner
jWicket version 0.6.1 is now in wicketstuff's trunk.

New Featuers:
- ui-accordion
- ui-sortable

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



RE: wicket in a mobile application.

2010-07-13 Thread Stefan Lindner
What do you mean with mobile? Search for walmart on this list. Then you 
will find some informations about walmart using Wicket for mobile devices.

Stefan

-Ursprüngliche Nachricht-
Von: amit1400158 [mailto:ade...@qasource.com] 
Gesendet: Dienstag, 13. Juli 2010 13:22
An: users@wicket.apache.org
Betreff: wicket in a mobile application.


Please tell me how successful is wicket in  mobile application??
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-in-a-mobile-application-tp2287273p2287273.html
Sent from the Wicket - User 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: open Modal Window without AjaxRequestTarget

2010-07-01 Thread Stefan Lindner
See ModalWindow.getWindowOpenJavascript() and use it like this

ModalWindow myModalWindow = new ModalWIndow..
someComponent.add(new SimpleAttributeModifier(onclick,
myModalWindow.getWindowOpenJavascript()));

I didn't try I but I think it should work like this.

Stefan

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



RE: Jwicket and Wiquery

2010-06-28 Thread Stefan Lindner
There is no tutorial for jWicket yet. Take a look at the javadocs or look into 
the source code of the demo application.
And: If you are convinced that wiquery fulfills your requierements then take 
wiquery.

Stefan

-Ursprüngliche Nachricht-
Von: Josh Kamau [mailto:joshnet2...@gmail.com] 
Gesendet: Montag, 28. Juni 2010 16:05
An: users@wicket.apache.org
Betreff: Jwicket and Wiquery

Hi team;

Whats the difference between jwicket and wiquery? I have already read
wiquery tutorials and seen some examples, but i dont need to find any for
jwicket. any help from jwicket team will do

Kind regards.

josh

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



AW: Jwicket and Wiquery

2010-06-28 Thread Stefan Lindner
Hi Josh,

yes, jWicket does it the Wicket way.
Generally you have a Behavior (e.g. DraggabeBehavior) extending wicket's 
AjaxBehavior.

The you have some own component (a Panel e.g.)

Now you simply do

myPanel.add(new DraggableBehavior(...));

And DraggableBehavior let's you override some callbacks e.g.

DraggabeBehavior draggable = new DraggabeBehavior() {
onDragStop(final AjaxRequestTarget target, final SpecialKeys 
specialKeys) {
// react when dragging has stopped
}
};
Draggable.setWantOnDragStopNotification(true);


class MyPanel  extends Panel implements IDraggable { // only implements 
IDraggable if you need to react here
onDragStop(final AjaxRequestTarget target, final SpecialKeys 
specialKeys) {
// or react here when dragging has stopped
}
}

MyPanel myPanel = new MyPanel();
myPanel.add(draggable);

That's all.

Stefan


-Ursprüngliche Nachricht-
Von: Josh Kamau [mailto:joshnet2...@gmail.com] 
Gesendet: Montag, 28. Juni 2010 16:20
An: users@wicket.apache.org
Betreff: Re: Jwicket and Wiquery

Thanks Stefan.

Actually i have an idea that jWicket is what i want. I have read that it
allows me to do the UI the jquery way but send events via ajax to the
server. The only thing stopping me here is lack of documentation.

Let me check out the demo .

Thanks again.


On Mon, Jun 28, 2010 at 5:15 PM, Stefan Lindner lind...@visionet.de wrote:

 There is no tutorial for jWicket yet. Take a look at the javadocs or look
 into the source code of the demo application.
 And: If you are convinced that wiquery fulfills your requierements then
 take wiquery.

 Stefan

 -Ursprüngliche Nachricht-
 Von: Josh Kamau [mailto:joshnet2...@gmail.com]
 Gesendet: Montag, 28. Juni 2010 16:05
 An: users@wicket.apache.org
 Betreff: Jwicket and Wiquery

 Hi team;

 Whats the difference between jwicket and wiquery? I have already read
 wiquery tutorials and seen some examples, but i dont need to find any for
 jwicket. any help from jwicket team will do

 Kind regards.

 josh

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



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



RE: Jwicket and Wiquery

2010-06-28 Thread Stefan Lindner
Hi Josh,

it would be nice to her from you. Regardless of your decision. And while 
jwicket is a work in progres I am always glad to receive any feedback from 
users.

Stefan

-Ursprüngliche Nachricht-
Von: Josh Kamau [mailto:joshnet2...@gmail.com] 
Gesendet: Montag, 28. Juni 2010 16:20
An: users@wicket.apache.org
Betreff: Re: Jwicket and Wiquery

Thanks Stefan.

Actually i have an idea that jWicket is what i want. I have read that it
allows me to do the UI the jquery way but send events via ajax to the
server. The only thing stopping me here is lack of documentation.

Let me check out the demo .

Thanks again.


On Mon, Jun 28, 2010 at 5:15 PM, Stefan Lindner lind...@visionet.de wrote:

 There is no tutorial for jWicket yet. Take a look at the javadocs or look
 into the source code of the demo application.
 And: If you are convinced that wiquery fulfills your requierements then
 take wiquery.

 Stefan

 -Ursprüngliche Nachricht-
 Von: Josh Kamau [mailto:joshnet2...@gmail.com]
 Gesendet: Montag, 28. Juni 2010 16:05
 An: users@wicket.apache.org
 Betreff: Jwicket and Wiquery

 Hi team;

 Whats the difference between jwicket and wiquery? I have already read
 wiquery tutorials and seen some examples, but i dont need to find any for
 jwicket. any help from jwicket team will do

 Kind regards.

 josh

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



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



RE: AJAX Button does not submit form if RequiredTextField is empty

2010-06-18 Thread Stefan Lindner
http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/form/Form.html


-Ursprüngliche Nachricht-
Von: vov [mailto:vov...@mail.ru] 
Gesendet: Freitag, 18. Juni 2010 12:11
An: users@wicket.apache.org
Betreff: AJAX Button does not submit form if RequiredTextField is empty


FormVoid form = new FormVoid(form);
form.add(new RequiredTextFieldString(filed));
final TextFieldString textField;
form.add(textField = new TextFieldString(filed2, new
ModelString()));
form.add(new AjaxButton(button)
{
  @Override
  protected void onSubmit(AjaxRequestTarget target,
@SuppressWarnings(hiding) Form? form)
  {
System.out.println(Test. + textField.getConvertedInput());
System.out.println(Test. + textField.getModelObject());
  }
});

In case if filed is empty than onSubmit() method does not call after
submitting button.

I can find only one solution - to override process() and onValidate()
methods of form as fallows:

FormVoid form = new FormVoid(form)
{
  @Override
  public void process(IFormSubmittingComponent submittingComponent)
  {
if (button.equals(submittingComponent.getInputName()))
{
  getApplication().getSessionStore().setAttribute(getRequest(),
button, true);
}
super.process(submittingComponent);
  }

  @SuppressWarnings(unchecked)
  @Override
  protected void onValidate()
  {
if (getApplication().getSessionStore().getAttribute(getRequest(),
unvalidate) != null
 (Boolean)
getApplication().getSessionStore().getAttribute(getRequest(), unvalidate))
{
  getApplication().getSessionStore().removeAttribute(getRequest(),
button);
  Session.get().getFeedbackMessages().clear();
  return;
}
  }
};
...but IMHO it's not good:)

What is the correct way to solve this problem?

thanks in advance 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AJAX-Button-does-not-submit-form-if-RequiredTextField-is-empty-tp2259981p2259981.html
Sent from the Wicket - User 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


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



RE: AW: drag and drop

2010-06-17 Thread Stefan Lindner
This is a question for jQuery-UI mailing lists. It's independent from the 
jWicket implementation. 

-Ursprüngliche Nachricht-
Von: DerBernd [mailto:beha...@web.de] 
Gesendet: Donnerstag, 17. Juni 2010 11:35
An: users@wicket.apache.org
Betreff: Re: AW: drag and drop


Hi,
I've got a problem with my draggable Components and z-index. I do have
several draggable WebMarkupContainers that are nested in also draggable
Panels.


I set the z-index with 
dragger.setRawOptions(zIndex: 101); for the WebMarkupContainer
dragger.setRawOptions(zIndex: 100); for the Panel

When I dragg the WebMarkupContainer, the ParentPanel also starts to move.


When I only set
dragger.setRawOptions(zIndex: 101); for the WebMarkupContainer
and don't set the zIndex for the Panel

only the draggable WebMarkupContainer moves but the z-index does not work
out of the area of the parent panel.

I don't use the .ui-draggable-dragging {} for setting the z-index because I
want to set different z-indexes for the draggable Components.

Hope you can help me out

Thanks a lot

Bernd





-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2258492.html
Sent from the Wicket - User 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


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



jWicket Accordiion and Sortable

2010-06-13 Thread Stefan Lindner
I've committed version 0.6.0 of jWicket to wicketstuff's trunk. It
provides a first implementation of Accordion and Sortable. Both do not
have a complete documentation now (take a look at Abstractaccordion for
some hints).

I will now start to use both in my own projects. The API my change a
little bit but the general design will not.

Any suggestions and feedbacks are welcome as always. If someone needs
jar files: please let me know.

Stefan

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



jWicket: Accordion and Sortable

2010-06-12 Thread Stefan Lindner
I've comitted a first quick and dirty implementation of jQuery's
Accordion and Sortable. Still no documentation and no example, but works
for must cases.
API will change a litte bit in next version. Accordion and Sortable take
ListT as constructor parameter now. This will be a
ModelListT in the next version. No big thing.
Just check it out and let me know your experience.

Stefan

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



jWicket, DD + sort

2010-06-11 Thread Stefan Lindner
To all users with questions about position and sorting problems: I'm
implementing jQuery Sortable because jQuery Accordion has an option
'sortable'.

This will look like this



class MyClass implements ISortable {
   ...

   onSorted(final int newPosition) {
  ...
   }
}


Somewhere in page

div wicket:id=sortable/

Somewhere in code

ListMyClass myList;

Sortable = new Sortable(sortable, myList) {
   @Override
   protected Component getContent(final String id,
IModelMyClass model) {
  /* Render the content for one list item */
   }
}

Stefan

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



RE: jWicket SortableList

2010-06-10 Thread Stefan Lindner
jWicket (and jQuery too) does not know anything about other elements when you 
drop one element onto another. The droppable element itself must know ist's 
position  within your list.
So if you render your list, you must keep track of the relative position in 
your rendered elements.
I don't know of any mechanism in jQuery that would provide this function.
But: http://jqueryui.com/demos/sortable/ may be much closer to your needs.
This is not implementes in jWicket until now and I don't know if this will be 
possible in Wicket. But let me know your ideas! Perhaps we can start an 
implementation together? (Du kannst mir direkt an meine E-Mail-Adresse auch auf 
Deutsch antworten)

Stefan

-Ursprüngliche Nachricht-
Von: Sebastian Gabriel [mailto:sebastian.gabr...@hs-augsburg.de] 
Gesendet: Donnerstag, 10. Juni 2010 08:54
An: users@wicket.apache.org
Betreff: jWicket SortableList

Hello, 
I've figured out how to use the jWicket Drag'n'Drop components and the result 
is pretty nice. 
I have four lists, one list is in the beginning filled with elements and the 
user have so choose which element he wants in which list. It works, to drag the 
elements on the three other lists and the element is being added to the list. 
But my problem is that the lists have to be sortable by the user. 
How can I get the position of the element when it is dropped? So I can 
calculate whether it has been dropped above an element or under it. Or does 
jWicket doesn't cover this functionality.

Thanks.

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


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



jQuery Accordion implementation

2010-06-10 Thread Stefan Lindner
I'm starting to implement jQuery's Accordion for jWicket now. Any
suggestions/wishes?

Stefan

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



AW: drag and drop

2010-06-09 Thread Stefan Lindner
.iterator()

Stefan

-Ursprüngliche Nachricht-
Von: DerBernd [mailto:beha...@web.de] 
Gesendet: Mittwoch, 9. Juni 2010 09:44
An: users@wicket.apache.org
Betreff: Re: drag and drop


Hi,
little question at this point. How do I get the child-components of an
RepeatingView. Isn't there any kind of Collection?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2248428.html
Sent from the Wicket - User 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


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



RE: jWicket Drag'n'Drop

2010-06-06 Thread Stefan Lindner
Hallo,

what exactly do you mean with cloned?

Stefan

-Ursprüngliche Nachricht-
Von: Sebastian Gabriel [mailto:sebastian.gabr...@hs-augsburg.de] 
Gesendet: Sonntag, 6. Juni 2010 13:49
An: users@wicket.apache.org
Betreff: jWicket Drag'n'Drop

Hello,
I am trying to build a drag and drop component, which display three different 
list and the user should be able to move the listeitems between the different 
lists. 
I have the lists and I'm able to move the items to other lists where they also 
be displayed. My problem is when I drop a listitem into a list the item is 
'cloned' - after drop the item is in the list and also in the place where I 
have dropped it. So this is my first problem and the second is, that an item 
which was dropped onto a list, can't be moved at all, although all three lists 
are instances of the same class. Perhaps somebody has a clue what I'm doing 
wrong.

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


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



AW: jWicket Drag'n'Drop

2010-06-06 Thread Stefan Lindner
See previous mails on this list or nabble: 
http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-td1881857i20.html

-Ursprüngliche Nachricht-
Von: Sebastian Gabriel [mailto:sebastian.gabr...@hs-augsburg.de] 
Gesendet: Sonntag, 6. Juni 2010 19:20
An: users@wicket.apache.org
Betreff: Re: jWicket Drag'n'Drop

Well, 
in the onDrop() method of the listcontainer the droppedelement is added to the 
list. At this point I want the element which was dropped to disappear. Because 
if not the element is displayed twice.

Thanks


Am 06.06.2010 um 17:23 schrieb Stefan Lindner:

 Hallo,
 
 what exactly do you mean with cloned?
 
 Stefan
 
 -Ursprüngliche Nachricht-
 Von: Sebastian Gabriel [mailto:sebastian.gabr...@hs-augsburg.de] 
 Gesendet: Sonntag, 6. Juni 2010 13:49
 An: users@wicket.apache.org
 Betreff: jWicket Drag'n'Drop
 
 Hello,
 I am trying to build a drag and drop component, which display three different 
 list and the user should be able to move the listeitems between the different 
 lists. 
 I have the lists and I'm able to move the items to other lists where they 
 also be displayed. My problem is when I drop a listitem into a list the item 
 is 'cloned' - after drop the item is in the list and also in the place where 
 I have dropped it. So this is my first problem and the second is, that an 
 item which was dropped onto a list, can't be moved at all, although all three 
 lists are instances of the same class. Perhaps somebody has a clue what I'm 
 doing wrong.
 
 Thanks
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 


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


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



RE: drag and drop

2010-06-04 Thread Stefan Lindner
Could you provide a small testcase? I'm using dd very intensive in a calendar 
app and never had any problems with this.

Stefan

-Ursprüngliche Nachricht-
Von: DerBernd [mailto:beha...@web.de] 
Gesendet: Freitag, 4. Juni 2010 11:06
An: users@wicket.apache.org
Betreff: Re: drag and drop


Thank you for your help. 
So I solved it by using repeaters RepeatingView.
On DropEvent I add the droppedComponent to the repeating view and update the
page.
I also had to set wantOnDragStartNotification(false),
wantOnDragStopNotification(false), otherwise the dropped Component was not
found on page - don't know really why




-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2242897.html
Sent from the Wicket - User 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


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



RE: drag and drop

2010-06-04 Thread Stefan Lindner
The default value for both is false! The code:

private boolean onDragStartNotificationWanted = false;
/**
 * If set to {...@code true}, the callback-Method {...@link 
#onDragStart(AjaxRequestTarget,SpecialKeys)} 
 * is called when the drag operation starts.
 * @param value {...@code true} or {...@code false}.
 * @return this object
 */
public DraggableBehavior setWantOnDragStartNotification(final boolean 
value) {
onDragStartNotificationWanted = value;
return this;
}

So I can't see any side effect of calling

wantOnDragStartNotification(false);

There must be some other strange situation.

Stefan

-Ursprüngliche Nachricht-
Von: DerBernd [mailto:beha...@web.de] 
Gesendet: Freitag, 4. Juni 2010 11:06
An: users@wicket.apache.org
Betreff: Re: drag and drop


Thank you for your help. 
So I solved it by using repeaters RepeatingView.
On DropEvent I add the droppedComponent to the repeating view and update the
page.
I also had to set wantOnDragStartNotification(false),
wantOnDragStopNotification(false), otherwise the dropped Component was not
found on page - don't know really why




-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2242897.html
Sent from the Wicket - User 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


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



AW: drag and drop

2010-06-04 Thread Stefan Lindner
Look into the original jQuery docs for draggable and set any options that are 
not implementet now with

setRawOptions(handle: 'h2');

This should do the trick. If you have any suggestion for implementing a

setHandle(???)

method that doesn't simple have a String parameter, please let me know.

Stefan

-Ursprüngliche Nachricht-
Von: DerBernd [mailto:beha...@web.de] 
Gesendet: Freitag, 4. Juni 2010 11:14
An: users@wicket.apache.org
Betreff: Re: drag and drop


No I have a absolutely specific question to jwicket-jquery.

I want to set the handle option on a draggable, to define the tag which is
used to drag the panel. 
e.g. handle: 'h2'

Unfortunately theres no setter for the handle option.


Thank you

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2242910.html
Sent from the Wicket - User 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


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



RE: drag and drop

2010-06-04 Thread Stefan Lindner
This is a general Ajax problem. The ajax calls fired by the jQuery handlers 
dragStart/drag/dragEnd are not sychronized with each other. So it may happen 
that the onDrop event of the droppable is fired BEFORE the dragEnd.
In the onDrop method you replace the dragged component wit a new one (redrawing 
your repeaters).
Then, afterwards, the dragStop event occurs and your component no longer exists.
If you really need to watch teh dragStop in addition to the onDrop, you need to 
synchronize your actions. This means you have to wait for the onDrop response 
BEFORE you redraw you components or in othe rwords: move the onDrop code to the 
onDragEnd.

Sorry, but this is a general problem that can't be fixed in jWicket.

Stefan

-Ursprüngliche Nachricht-
Von: DerBernd [mailto:beha...@web.de] 
Gesendet: Freitag, 4. Juni 2010 11:36
An: users@wicket.apache.org
Betreff: RE: drag and drop


So here is my Example Case
I have several Platzhalter which implement IDroppable and some
FeldKursObjects which implement IDraggable. The FeldKurs Components are 
dragged on Placeholders.

When I define
dragger.setWantOnDragStartNotification(true);
dragger.setWantOnDragStopNotification(true);
there occurs an error like:
WicketMessage: org.apache.wicket.WicketRuntimeException: component
panelInhalt:listPanel:panelWochenplanung:platzhalter_t0r0:listPanel:feldKurs101
not found on page kursa.wochenplanung.WochenplanungPage[id = 3], listener
interface = [RequestListenerInterface name=IBehaviorListener, method=public
abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()]


When I set them false or don't even set anything (default) the error doesn't
occur

Heres the code

public class Platzhalter extends Panel implements IDroppable{

...
private final RepeatingView listPanel;

public void onDrop(AjaxRequestTarget target, Component draggedComponent,
SpecialKeys specialKeys) {
this.listPanel.add(draggedComponent);
WochenplanungPage wochenplanungPage = 
findParent(WochenplanungPage.class);
  // Parent Page of Platzhalter
target.addComponent(wochenplanungPage);
}
}


public class FeldKurs extends Panel implements IDraggable{
...

public FeldKurs(String id, Kurs kurs) {
super(id);
this.kurs = kurs;
dragger = new DraggableBehavior();
dragger.setRevert(DraggableBehavior.DragRevertMode.INVALID);
dragger.setDistance(20);
dragger.setOpacity(0.99);
  dragger.setName(one);
dragger.setWantOnDragStartNotification(true);
dragger.setWantOnDragStopNotification(true);
dragger.setCursor(CssCursor.MOVE);
add(dragger);

}
...
}




-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2242938.html
Sent from the Wicket - User 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


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



How to get PageClass form mounted bookmarkable page

2010-06-01 Thread Stefan Lindner
I have some pages mounted  with

 

moutBookmarkablePage(/somePath, MyPage.class)

 

in Application.init. Now I have the path /somePath from webRequest.
How can I retriev the matching MyPage.class for the path /somePath?

 

Stefan



RE: Very interesting question... my boss complain about one of my implementations...

2010-05-28 Thread Stefan Lindner
And the simplest solution, if it is a simple database action, would be
to use a cron job if your database runsund some **ux operating system.

Stefan

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



RE: drag and drop

2010-05-26 Thread Stefan Lindner
I think this is a general Wicket problem. You have component A originally 
attached to Container C1 an then call Container C2.add(A). This means you want 
to remove Component A from Parent C1 and add it to Parent C2? Is this what you 
are doing?

Stefan

-Ursprüngliche Nachricht-
Von: DerBernd [mailto:beha...@web.de] 
Gesendet: Mittwoch, 26. Mai 2010 07:51
An: users@wicket.apache.org
Betreff: Re: drag and drop


Hi,
now I tried jwicket-examples and it works quite well. But at the momemt I
stuck into a problem and I hope you can help me out.

I have a Panel Placeholder that implements IDroppable
And a Panel Field that implements IDraggable

So I have some empty Placeholders and a few Placeholders that are filled
with a Field. (held in an repeatingView of Placeholder). When I drop a Field 
over an empty Placeholder, I want to add the Field to the empty Placeholder
and remove it on its old Placeholder.

Here's the code of the placeholder.

public void onDrop(AjaxRequestTarget target, Component draggedComponent,
SpecialKeys specialKeys) {
Field field = (Field)draggedComponent;


listPanel.add(feld); //add it to the repeating View

PanelWochenplanung panelWochenplanung =
findParent(PanelWochenplanung.class); // get the ParentPanel
target.addComponent(panelWochenplanung); // render the ParentPanel with all
Placeholders in

}

When I drop the field (e.g. FeldA2 from the placeholder_t2r0) on an other
placeholder I get the following error, that the dropped field was not found
on the PAGE! 


component
panelMitte:listPanel:panelWochenplanung:platzhalter_t2r0:listPanel:feldA2
not found on page kursa.wochenplanung.WochenplanungPage[id = 1], listener
interface = [RequestListenerInterface name=IBehaviorListener, method=public
abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()]

 
I hope you can get me a idea about what is wrong;)
Thank you
Bernd
http://apache-wicket.1842946.n4.nabble.com/file/n2231075/WicketMessage.txt
WicketMessage.txt 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2231075.html
Sent from the Wicket - User 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


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



RE: [announce] wicketstuff-core 1.4.7 released

2010-05-24 Thread Stefan Lindner
Great, Michael! Thank you!
 
Stefan



Von: Michael O'Cleirigh [mailto:michael.ocleir...@rivulet.ca]
Gesendet: Mo 24.05.2010 17:48
An: users@wicket.apache.org
Betreff: [announce] wicketstuff-core 1.4.7 released



Hello,

Based on the positive reception for a 1.4.7 wicketstuff-core release, 4
positive votes (3 + mine) and no negative,  I promoted the staged
release into the sonatype repository and filed the ticket for central
sync up.

The sync up has now occurred and the 1.4.7 artifacts are available
through maven central (http://repo2.maven.org/maven2/org/wicketstuff).

Tag:
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/tags/wicketstuff-core-1.4.7

To use in Maven:

dependency
 groupIdorg.wicketstuff/groupId
 artifactId${module}/artifactId
 version1.4.7/version
/dependency

The module names come from what is defined in each module's POM (so each
module directory/pom.xml that produces a jar artifact).

Regards,

Mike






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





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

AW: Wicket Panel tag

2010-05-21 Thread Stefan Lindner
Yes, ist is! Use a WebMarkupcontainer. It will leave your content untouches 
(except the ID)
 
Stefan



Von: Brian Mulholland [mailto:blmulholl...@gmail.com]
Gesendet: Fr 21.05.2010 20:10
An: users@wicket.apache.org
Betreff: Re: Wicket Panel tag



Cool, those both helped alot.  Unfortunately, they have lead me to
realize another major flaw in my plan.  Of course the wicket panel is
destroying the content in the template.  In most cases that is a
feature, but in this case the point is for the control to act as a
wrapper around other content (both static AND wicket replaced).  But
of course, the panel is replacing that content.

So is there a way to preserve the child content?  To illustrate the
plan, I want my markup in the HTMl template to look something like:

div wicket:id='drawTabsHere'
  div id=tab1Tab One! input type=text wicket:id=myTag/div
  div id=tab2Tab Two!/div
 /div

but the rendered HTML would add a hidden input, and some javascript,
but would otherwise preserve the rest of it's content, including any
wicket:id marked tags.  It would go to the browser as something like:

div id='drawTabsHere'
  input type=hidden name=activeTab value=0
  div id=tab1Tab One! input type=text name=myTag value=whatever/div
  div id=tab2Tab Two!/div
 /div
script/* some javascript not worth repeating here *//script

I suppose I *might* be able to have the drawTabsHere div NOT
encapsulate the tab1 and tab2 div's.  That is the direction I will
start moving, but is there a way to achieve the above ideal?  Since
tab1 and 2 are children of the drawTabsHere node, it would be better
if the markup reflected that.

On 5/21/10, Richard Wilkinson richardjohnwilkin...@googlemail.com wrote:
 Hi,

 1)
 To get wicket to output a dom id you must call
 mycomponent.setOutputMarkupId(true).  This will output a generated dom
 id, which you can access in your java code by calling
 mycomponent.getMarkupId().
 Wicket will overrwrite any dom id in your code, if that element is
 used for a wicket component (ie has wicket:id=myid)

 2)
 Wicket tags like wicket:panel are removed if the application is
 running in deployment mode, but are rendered if the application is
 running in development.  You can control this explicitly by calling
 getMarkupSettings().setStripWicketTags(true); in your application init
 code, or by using
 Application.get().getMarkupSettings().setStripWicketTags(true); in any
 wicket code.


 --
 Regards - Richard Wilkinson
 Developer,
 jWeekend: OO  Java Technologies - Development and Training
 http://jWeekend.com http://jweekend.com/ 


 On 21 May 2010 17:51, Brian Mulholland blmulholl...@gmail.com wrote:
 Our app will be using ExtJS tab controls.  So to make that easier I
 wrapped the ExtJS code up into a Wicket Panel to hide the complexity
 of working with ExtJS.  The idea is that I would tell my class what
 the wicket:id of the span/div was to draw the thing to, as well as
 naming the N subtab id's (these are the HTML ids) so that the class
 could write out the javascript code to render the tabs from the markup
 already in the page.  So the HTML would look like:

 div wicket:id='drawTabsHere'
  div id=tab1Tab One!/div
  div id=tab2Tab Two!/div
 /div

 And the java code would look like:

 add(new MyTabPanel(drawTabsHere, tab1, tab2));

 The premise is REALLY close to working.  Here's my problems:

 1) The wicket:id= attribute on the div won't copy the id into the
 markup.  I must repeat it in the template div
 wicket:id='drawTabsHere' id='drawTabsHere'.  I tried adding the id
 via an Attribute Modifier like so:

 add(new AttributeModifier(id, new Model(renderToID)));

 But it ignores me.  I'd rather not force my developers to repeat the
 id.  How can I accomplish that?

 2) More importantly, the rendering of the tabs is malfunctioning.  I
 believe that it is because the panel actually DRAWS the wicket:panel
 tag around the subtab div's and thus screws up ExtJS.  I didn't
 realize that panels wrote the wicket tags out to the browser until i
 hit this.  I'd always assumed that wicket: tags were for the
 server's use, and were not rendered.  How can I suppress this so that
 the DOM hierarchy is right for my use?

 I do have a hidden input tag in the wicket:panel in order to preserve
 the selected tab so that we preserve it between submits.  I tried
 removing it and it did not help, but cannot remove the wicket:panel
 without Wicket throwing an exception.


 --
 Brian Mulholland

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



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




--
Brian Mulholland

-
To unsubscribe, e-mail: 

AW: drag and drop

2010-05-19 Thread Stefan Lindner

Perhaps you could try jWicket from wicketstuff http://www.wicketstuff.org/ 
(site is down at the moment).
You could check aout the source from 
http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/jwicket-parent
 and build the project with maven install

Stefan

-Ursprüngliche Nachricht-
Von: DerBernd [mailto:beha...@web.de]
Gesendet: Mi 19.05.2010 09:26
An: users@wicket.apache.org
Betreff: Re: drag and drop
 

Hi,
I'm working on a wicket-project (1.4) and need to implement some dragdrop
features. Could you give me some current links of tutorials to start with. 
I also don't know which technology to choose: YUI, DOJO, scriptaculous ???

Thank you for your help
Bernd

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p375.html
Sent from the Wicket - User 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




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

AW: drag and drop

2010-05-19 Thread Stefan Lindner
Ernesto Reinaldo wrote

2-jQuery DD is also broken for IE after AJAX replacements (Stefan
Lindner will surely confirm this). You can find this explained in
others threads on this list and on jQuery forum. It seems the same
issue has been reported over and over and they do not fix it:-(. I
think Stefan has patched the jquery.js file to get it working for his
jWicket project. This problem is present on WiQuery (as their jquery
hasn't been patched: which IMHO is the right thing to do).


That's correct. The bug is fixed by a patch for jquery in jWicket. No problems 
with broken AjaxBehaviors in IE. This point (DD or other effects stop to work 
after an Ajax update) is always worth a closer look if you decide to use any 
javascript framework. I had the same problem with an early Wicket-Dojo package. 
And I noticed similar problems with orther functioins than DD in some 
javasript frameworks. No one trys to re-invent the wheel. Many frameworks use 
code fragments from other frameworks and general problems spread all over these 
frameworks.

Stefan

-Ursprüngliche Nachricht-
Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com]
Gesendet: Mi 19.05.2010 09:54
An: users@wicket.apache.org
Betreff: Re: drag and drop
 
Hi Bernd,

I would use YUI or give it a try to [1] as:

1-scriptacoulous has the problem (for IE) mentioned on this thread
(disclaimer: I don't know if it has been fixed after this tread was
created and taht was long ago)/
2-jQuery DD is also broken for IE after AJAX replacements (Stefan
Lindner will surely confirm this). You can find this explained in
others threads on this list and on jQuery forum. It seems the same
issue has been reported over and over and they do not fix it:-(. I
think Stefan has patched the jquery.js file to get it working for his
jWicket project. This problem is present on WiQuery (as their jquery
hasn't been patched: which IMHO is the right thing to do).
4- I haven't tried [1] but I remember seen a working demo of it.
5-I haven't tried DOJO.

As for YUI I had to do some tricks to get it working  (again for IE)
in combination with AYAX replacements (I used it for a grid whose
columns could be reordered via DD).

References,

1-http://code.google.com/p/wicket-dnd/

On Wed, May 19, 2010 at 9:26 AM, DerBernd beha...@web.de wrote:

 Hi,
 I'm working on a wicket-project (1.4) and need to implement some dragdrop
 features. Could you give me some current links of tutorials to start with.
 I also don't know which technology to choose: YUI, DOJO, scriptaculous ???

 Thank you for your help
 Bernd

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p375.html
 Sent from the Wicket - User 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



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




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

AW: jWicket 0.5.10

2010-05-17 Thread Stefan Lindner
Hi Josh,

download ist. Call mvn install and put the resulting war file into your deploy 
dir. Perhaps you have to remove slf4j from the web-inf/lib folder of the war 
file if your server has it's own slf4j.

The Demo does not look very pretty, it's more of a demonstratioin what's 
possible and a starting point for code inspection.

Stefan

-Ursprüngliche Nachricht-
Von: Josh Kamau [mailto:joshnet2...@gmail.com]
Gesendet: Mo 17.05.2010 13:14
An: users@wicket.apache.org
Betreff: Re: jWicket 0.5.10
 
Hi stefan, where can i see a demo?

regards
Josh

On Sun, May 16, 2010 at 12:53 PM, Stefan Lindner lind...@visionet.dewrote:

 jWicket 0.5.10 is now available at wicketstuff:
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/jwicket-parent

 Upgraded jQuery-ui to version 1.8.1

 Stefan




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

jWicket 0.5.10

2010-05-16 Thread Stefan Lindner
jWicket 0.5.10 is now available at wicketstuff: 
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/jwicket-parent

Upgraded jQuery-ui to version 1.8.1

Stefan


AW: Remove busy indicator from ajax timer behavior?

2010-05-12 Thread Stefan Lindner
I don't use it but i suggest something like

div class=hideBusy
   div qwicket:id=budyIndicator/
/div


and use 

div.hideBusy {
display:none;
}

in css.

Just theoretically, not tested

Stefan

-Ursprüngliche Nachricht-
Von: Early Morning [mailto:goodmorning...@gmail.com]
Gesendet: Mi 12.05.2010 09:44
An: users@wicket.apache.org
Betreff: Remove busy indicator from ajax timer behavior?
 
Hi All,

I followed this to implement a sitewide busy indicator:
https://cwiki.apache.org/WICKET/generic-busy-indicator-for-both-ajax-and-non-ajax-submits.html

However, I have an ajax behavior that polls in the page every 2 seconds, and
every time it does the busy indicator flashes since the showBusysign()
javascript method is registered as the PreCallHandler. How can I remove the
busy indicator for only the polling behavior but keep it for other Ajax
requests? Thanks!


Regards,

Ces



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

doctype and markup inheritance

2010-05-11 Thread Stefan Lindner
Dear Wicket wizzards,

given is a page A with a HTML file that has no doctype, just starting with 
html...wicket:child

The Page's class is extended by B and the markup of B has a proper HTML file 
with XML and doctype lines.

What is the intended behavior of wicket?

1. Ignore the exdending B's xml and doctype an use the settings form A
2. Override the settings from A with the proper doctype from B
3. Control it in Wicket's Application.init()?

getMarkupSettings().setStripXmlDeclarationFromOutput(true/false) has no effect. 
In my case (given A that cannot be modified) item 1. is true.

Stefan


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

RE: doctype and markup inheritance

2010-05-11 Thread Stefan Lindner
Yes, but both are missing in HTML A.


-Ursprüngliche Nachricht-
Von: Sven Meier [mailto:s...@meiers.net]
Gesendet: Di 11.05.2010 08:52
An: users@wicket.apache.org
Betreff: Re: doctype and markup inheritance
 

#setStripXmlDeclarationFromOutput() has nothing to do with doctype - it
controls the xml prolog.

Sven
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Html-root-tag-and-contents-repeating-in-response-after-302-redirect-tp2173315p2173399.html
Sent from the Wicket - User 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




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

: WicketStuff jWicket - Where is it?

2010-05-11 Thread Stefan Lindner
Are you sure you are talking about jwicket? Where dou you see any JSON stuff in 
jwicket?


-Ursprüngliche Nachricht-
Von: Charles Deal [mailto:chuckdea...@gmail.com]
Gesendet: Di 11.05.2010 13:39
An: users@wicket.apache.org
Betreff: Re: WicketStuff jWicket - Where is it?
 
Thanks, I was able to get things sorted out.  Is there a support site for
this project?  Live examples, wiki, jira.  Are you using wicketstuff for
those facilities?

I found a couple of things that I'd like to report.

Also, one of the things I did like about the wicketstuff-jquery project was
how it handled the options.  It did use an external dependency [1] to handle
the JSON stuff.  Each behavior basically had an Options class that went with
it, that knew how to build the JSON object.  I didn't initially care for it,
but then I realized that it really reduced the noise on the behavior and
left the options to be supplied by the user. Even though this adds an
external dependency, it would remove the JSON specific classes from this
code base so that it could be really focused on the jquery tasks.


[1]  dependency
groupIdnet.sf.json-lib/groupId
artifactIdjson-lib/artifactId
version2.2.2/version
classifierjdk15/classifier
/dependency

On Mon, May 10, 2010 at 12:16 PM, Stefan Lindner lind...@visionet.dewrote:

 Yes! It is. It's based upon jQuery 1.4.2 and jQuery-ui 1.8.0.
 Version 1.8.1 of jQuery-ui is now available. If this new version is
 required I could integrate it next weekend. Let me know.

 Stefan

 -Ursprüngliche Nachricht-
 Von: Charles Deal [mailto:chuckdea...@gmail.com]
 Gesendet: Montag, 10. Mai 2010 15:44
 An: users@wicket.apache.org
 Betreff: Re: WicketStuff jWicket - Where is it?

 Crap, doesn't that just figure.  Is this the correct location for the
 jWicket svn codebase?


 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/jwicket-parent


 On Mon, May 10, 2010 at 9:41 AM, Charles Deal chuckdea...@gmail.com
 wrote:

  I am currently using wicketstuff-jquery for jQuery integration.  However,
  that project seems to be stalled.  I've seen many good references to both
  wiQuery and jWicket on the list and jWicket seems to line up closer to
 what
  wicketstuff-jquery was.  Which I'm hoping will lead to less pain when
  swapping out the library.
 
  I've been searching this morning trying to find the distribtables for the
  project but have not been able to find anything recent (or that appears
  recent).  The wicketstuff repo (
  http://wicketstuff.org/maven/repository/org/wicketstuff/) shows numerous
  jwicket subprojects, but the 1.4-SNAPSHOT version of the jars is OLDER
 than
  the 1.4.2 version of the jars.  I don't know which jars to pull.
 
  So, I was going to pull the source and build it myself.  Now, I am having
  trouble finding the svn repo.  I expected to find the source here (
 
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/jwicket-parent
 )
  but instead I found (a presumably older) copy here (
 
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/releases/wicketstuff-core-1.4-rc7/jwicket-parent
 ).
 
 
  The mailing list, over the last few months, references jWicket being at
  versions that look like 0.5.0, and most recently 0.5.7.  No mention of
 those
  versions was found in the wicketstuff repo for this project.
 
  Could someone confirm the latest version of jWicket or supply the path to
  the svn codebase?  It would be much appreciated.
 
  Chuck Deal
 

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





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

Does anybody use AjaxLazyLoadPanelTester

2010-05-11 Thread Stefan Lindner
Does anybody use AjaxLazyLoadPanelTester with success? We have to start a new 
request cycle manually before calling executeAjaxLazyLoadPanel.

Stefan





AW: : WicketStuff jWicket - Where is it?

2010-05-11 Thread Stefan Lindner
Hi Charles,

I see what you mean. Are you the maintainer of this json-lib project? I prefer 
to be independent from other projets at this stage because I suffered from some 
stalled projects in the past.
If the 1.0 is in sight for the jwicket project I will rethink using json-lib 
project if composing the javascript string can be handled with it.

Stefan


-Ursprüngliche Nachricht-
Von: Charles Deal [mailto:chuckdea...@gmail.com]
Gesendet: Di 11.05.2010 15:13
An: users@wicket.apache.org
Betreff: Re: : WicketStuff jWicket - Where is it?
 
In JQueryAjaxBehavior, you have five protected inner classes that (by my
interpretation) are creating the JSON formatted string to pass to the jQuery
methods.

DraggableBehavior, for example, has an options property of type JsMap.  In
the getJsBuilder method of that class, you call toString() on the options
property which basically produces a JSON string.

I was just saying that that internal code could be replaced with the
json-lib project which accomplishes the same task and would remove the
duplicate code from this project.  And yes, ideally, I won't see any
JSON in the code, but that doesn't remove the fact that the code must
generate the options object for the jQuery behaviors.


On Tue, May 11, 2010 at 7:51 AM, Stefan Lindner lind...@visionet.de wrote:

 Are you sure you are talking about jwicket? Where dou you see any JSON
 stuff in jwicket?


 -Ursprüngliche Nachricht-
 Von: Charles Deal [mailto:chuckdea...@gmail.com]
 Gesendet: Di 11.05.2010 13:39
 An: users@wicket.apache.org
 Betreff: Re: WicketStuff jWicket - Where is it?

 Thanks, I was able to get things sorted out.  Is there a support site for
 this project?  Live examples, wiki, jira.  Are you using wicketstuff for
 those facilities?

 I found a couple of things that I'd like to report.

 Also, one of the things I did like about the wicketstuff-jquery project was
 how it handled the options.  It did use an external dependency [1] to
 handle
 the JSON stuff.  Each behavior basically had an Options class that went
 with
 it, that knew how to build the JSON object.  I didn't initially care for
 it,
 but then I realized that it really reduced the noise on the behavior and
 left the options to be supplied by the user. Even though this adds an
 external dependency, it would remove the JSON specific classes from this
 code base so that it could be really focused on the jquery tasks.


 [1]  dependency
groupIdnet.sf.json-lib/groupId
artifactIdjson-lib/artifactId
version2.2.2/version
classifierjdk15/classifier
/dependency

 On Mon, May 10, 2010 at 12:16 PM, Stefan Lindner lind...@visionet.de
 wrote:

  Yes! It is. It's based upon jQuery 1.4.2 and jQuery-ui 1.8.0.
  Version 1.8.1 of jQuery-ui is now available. If this new version is
  required I could integrate it next weekend. Let me know.
 
  Stefan
 
  -Ursprüngliche Nachricht-
  Von: Charles Deal [mailto:chuckdea...@gmail.com]
  Gesendet: Montag, 10. Mai 2010 15:44
  An: users@wicket.apache.org
  Betreff: Re: WicketStuff jWicket - Where is it?
 
  Crap, doesn't that just figure.  Is this the correct location for the
  jWicket svn codebase?
 
 
 
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/jwicket-parent
 
 
  On Mon, May 10, 2010 at 9:41 AM, Charles Deal chuckdea...@gmail.com
  wrote:
 
   I am currently using wicketstuff-jquery for jQuery integration.
  However,
   that project seems to be stalled.  I've seen many good references to
 both
   wiQuery and jWicket on the list and jWicket seems to line up closer to
  what
   wicketstuff-jquery was.  Which I'm hoping will lead to less pain when
   swapping out the library.
  
   I've been searching this morning trying to find the distribtables for
 the
   project but have not been able to find anything recent (or that appears
   recent).  The wicketstuff repo (
   http://wicketstuff.org/maven/repository/org/wicketstuff/) shows
 numerous
   jwicket subprojects, but the 1.4-SNAPSHOT version of the jars is OLDER
  than
   the 1.4.2 version of the jars.  I don't know which jars to pull.
  
   So, I was going to pull the source and build it myself.  Now, I am
 having
   trouble finding the svn repo.  I expected to find the source here (
  
 
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/jwicket-parent
  )
   but instead I found (a presumably older) copy here (
  
 
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/releases/wicketstuff-core-1.4-rc7/jwicket-parent
  ).
  
  
   The mailing list, over the last few months, references jWicket being at
   versions that look like 0.5.0, and most recently 0.5.7.  No mention of
  those
   versions was found in the wicketstuff repo for this project.
  
   Could someone confirm the latest version of jWicket or supply the path
 to
   the svn codebase?  It would be much appreciated.
  
   Chuck Deal

RE: WicketStuff jWicket - Where is it?

2010-05-10 Thread Stefan Lindner
Yes! It is. It's based upon jQuery 1.4.2 and jQuery-ui 1.8.0.
Version 1.8.1 of jQuery-ui is now available. If this new version is required I 
could integrate it next weekend. Let me know.

Stefan

-Ursprüngliche Nachricht-
Von: Charles Deal [mailto:chuckdea...@gmail.com] 
Gesendet: Montag, 10. Mai 2010 15:44
An: users@wicket.apache.org
Betreff: Re: WicketStuff jWicket - Where is it?

Crap, doesn't that just figure.  Is this the correct location for the
jWicket svn codebase?

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/jwicket-parent


On Mon, May 10, 2010 at 9:41 AM, Charles Deal chuckdea...@gmail.com wrote:

 I am currently using wicketstuff-jquery for jQuery integration.  However,
 that project seems to be stalled.  I've seen many good references to both
 wiQuery and jWicket on the list and jWicket seems to line up closer to what
 wicketstuff-jquery was.  Which I'm hoping will lead to less pain when
 swapping out the library.

 I've been searching this morning trying to find the distribtables for the
 project but have not been able to find anything recent (or that appears
 recent).  The wicketstuff repo (
 http://wicketstuff.org/maven/repository/org/wicketstuff/) shows numerous
 jwicket subprojects, but the 1.4-SNAPSHOT version of the jars is OLDER than
 the 1.4.2 version of the jars.  I don't know which jars to pull.

 So, I was going to pull the source and build it myself.  Now, I am having
 trouble finding the svn repo.  I expected to find the source here (
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/jwicket-parent)
 but instead I found (a presumably older) copy here (
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/releases/wicketstuff-core-1.4-rc7/jwicket-parent).


 The mailing list, over the last few months, references jWicket being at
 versions that look like 0.5.0, and most recently 0.5.7.  No mention of those
 versions was found in the wicketstuff repo for this project.

 Could someone confirm the latest version of jWicket or supply the path to
 the svn codebase?  It would be much appreciated.

 Chuck Deal


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



RE: Wicket Bench

2010-04-29 Thread Stefan Lindner
Stump does not build with maven. Stump provides no downloadable plugin at this 
time. I was in contact with the programmer and he told me that he has not much 
time to support it but he wants to provide a first version in the next few 
weeks.

there is another litte plugin qwickie hat has currently much less support 
than Bench/Stump but provides a plugin-update-location for an early version 
0.2.2.
this version supports clicking onto a wicket:id tag and opening the .java/.html 
file vice versa.

Stefan


-Ursprüngliche Nachricht-
Von: Martin Grigorov [mailto:mcgreg...@e-card.bg]
Gesendet: Do 29.04.2010 08:56
An: users@wicket.apache.org
Betreff: Re: Wicket Bench
 
Take a look at http://sourceforge.net/projects/stump/

I don't use it so I cannot tell anything about it.

On Wed, 2010-04-28 at 14:50 -0700, Igor Vaynberg wrote:
 if it was still supported i would recommend it.
 
 -igor
 
 On Wed, Apr 28, 2010 at 12:44 PM, Brian Mulholland
 blmulholl...@gmail.com wrote:
  Would you say those conveniences are worth it?  In other words, would
  you recommend Wicket Bench (or any other plugins)?
 
  Brian Mulholland
 
  On Wed, Apr 28, 2010 at 3:36 PM, Igor Vaynberg igor.vaynb...@gmail.com 
  wrote:
  wicket does not require any tooling because it is 90% java code and
  10% markup. so none of ide plugins provide must have features, only
  conveniences
 
  -igor
 
  On Wed, Apr 28, 2010 at 12:17 PM, Brian Mulholland
  blmulholl...@gmail.com wrote:
  Hi,
 
  Wicket n00b here.  How good is Wicket Bench?  I read on the site that
  it lacks maintainers and it didn't seem like it had alot of powerful
  features, just some nice convenience things.  Is it a must have?
  Also, is it compatible with the latest Wicket release?  I didn't see
  anything on the wicket bench site saying what version of wicket it was
  compatible with.
 
  Brian Mulholland
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 



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




RE: Wicket Bench

2010-04-29 Thread Stefan Lindner
Stump does not build with maven. Stump provides no downloadable plugin at this 
time. I was in contact with the programmer and he told me that he has not much 
time to support it but he wants to provide a first version in the next few 
weeks.

there is another litte plugin qwickie hat has currently much less support 
than Bench/Stump but provides a plugin-update-location for an early version 
0.2.2.
this version supports clicking onto a wicket:id tag and opening the .java/.html 
file vice versa.

Stefan


STump

2010-04-13 Thread Stefan Lindner
I was not able to build stump from http://sourceforge.net/apps/trac/stump 
(stump is new for wicket bench).
Can anybody help me? Maven says:

[INFO] Failed to resolve artifact.

Couldn't find a version in [1.0.0-v20070606] to match range 
[1.0.0,2.0.0)
  org.eclipse.equinox:app:jar:null

Also it is impossible to install Stump from 
https://stump.svn.sourceforge.net/svnroot/stump/update/

What is the state of this plugin?

Thanks

Stefan

-Ursprüngliche Nachricht-
Von: Kent Tong [mailto:k...@cpttm.org.mo] 
Gesendet: Mittwoch, 14. April 2010 02:16
An: users@wicket.apache.org
Betreff: Re: WICKET-2832



igor.vaynberg wrote:
 
 what about https://issues.apache.org/jira/browse/WICKET-1830 ?
 

Didn't notice that. wicket:path would work. However, I really think my
solution is better because
you don't need to specify the full path (which may change easily). In most
case, one only needs
to specify wicket=//my-component-id.


-
--
Kent Tong
Better way to unit test Wicket pages (http://wicketpagetest.sourceforge.net)
Books on CXF, Axis2, Wicket, JSF (http://agileskills2.org)
-- 
View this message in context: 
http://old.nabble.com/WICKET-2832-tp28228278p28237092.html
Sent from the Wicket - User 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


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



AW: jqery not getting called after ajax refresh

2010-04-09 Thread Stefan Lindner
Just some ideas:

1. After the Ajax action, the element that are target of the ajax call ere 
replaced in the DOM. The function that you bind ONCE and ONLY ONE in header are 
not automatically appliet to the replaced elements.
2. Does it hatten in IE too? I know of a similar problem that effects only IE 
(all versions)

You could try to add the javacode in your AjaxLinks onKlick method

   onClick(target) {
  target.addcomponent(some component);
  target.appendJavascript($(document).ready(function(){re-initialize the 
actions});
   }


-Ursprüngliche Nachricht-
Von: tubin gen [mailto:fachh...@gmail.com] 
Gesendet: Freitag, 9. April 2010 20:12
An: users
Betreff: jqery not getting called after ajax refresh

I   added this jquery code   to my page.

$(document).ready(function(){
 $(a.showHidePrograms).click(
 function () {
   var $div= $(this).parent().next(div);
   if($div.attr(class) == 'hide'){
$div.attr(class,show);
   }else{
  $div.attr(class,hide);
   }
 }
 );
});

 inside my html I have a table this contains  anchor tag with
class showHidePrograms.
  onclick of this anchor tag the function gets called everything is fine.

This page also has some ajaxLinks on click of this link  I repaint the
table, after thiswhen I click on anchor tag the jquery script is not
called ,
does repainting somehow hides this anchor from jquery ?

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



AW: Javascript from panel does not work

2010-04-07 Thread Stefan Lindner
To make it sure (it's better than just belive it): Take e.g. firefox with 
fiurebug-plugin. Inspect the head scetion of the page. There go to the script 
src=... tag and expand the tag. IF the js-file is referenced correctly and if 
it is loaded then the content should be visible in firebug.
Or place a simple

alert('I am loaded');

in your js files.

If you need the jQuery date picker try wicketsruff/jwicket. There you will find 
a ready to use implementation of jQuery's DatePicker. And it works in Panels.

Stefan

-Ursprüngliche Nachricht-
Von: Daniela Valero [mailto:danielavalero...@gmail.com] 
Gesendet: Mittwoch, 7. April 2010 15:28
An: users@wicket.apache.org
Betreff: Re: Javascript from panel does not work

2010/4/6 Jeremy Thomerson jer...@wickettraining.com

 Please make sure that your JS files are loading.  I suspect you may be
 getting a 404 when loading the JS because you are not referencing them
 correctly (you're using a relative URL, which may not work depending on
 where your panel is placed).



I belive that de url is fine, becouse my panel is placed in the same place
than the Page parent, and it works fine on Page parent. I will check this
out again.

Few days ago, a friend was trying to make work JS on panel, he was doing  a
JQuery datePicker, but he can't do it work on panels. Then he left the
project. He comment me that wicket's YUI datePicker desapeared fastly on
panels, it doesnt wait the click on the date of the user.

I believe those things are related, if my ToggleHighLigh.js works, the
datepicker by transitivity will works too



 Also, where is the JS that adds the onclick handler that highlights a row
 when it is clicked?  I'm assuming it much be ToggleHighLigh.js?



It is in that file, it contains a onClick JQuery function -
${this}.toggleClass(myClass).



 --
 Jeremy Thomerson
 http://www.wickettraining.com



 On Tue, Apr 6, 2010 at 5:41 PM, Daniela Valero
 danielavalero...@gmail.comwrote:

  Hi everybody
 
  I'm having a problem with my call to javascript from a panel. The problem
  is
  tah javascript does not work (if i call it from a page it works fine)
 
  I'm doing this:
 
  wicket:head
 script language=JavaScript1.2
  src=views/js/jquery-1.3.2.min.js/script
 script language=JavaScript1.2
  src=views/js/ToggleHighLigh.js/script
  /wicket:head
 
  p class=rowClick to toggle/p
   p class=row highLightedRowhighlight/p
   p class=rowon these/p
   p class=rowparagraphs/p
 
 
  When I click the p element it should call ToggleHighLigh.js, and add a
  css
  background.
 
  I tried calling the javascript from Page parent, but it isn't work
 
  What I'm missing?
 
 
  --
  | Daniela Valero
 
  No hay vientos favorables para quien no sabe a donde quiere ir!
 




-- 
| Daniela Valero

No hay vientos favorables para quien no sabe a donde quiere ir!

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



AW: resource (css) loading

2010-04-07 Thread Stefan Lindner
You could e.g. write your own page class

class MyCustomersPage extens Page {
@Override
public void renderHead(HtmlHeaderContainer container) {
super.renderHead(container);
cssResourceReference = 
Session.get().getCssResourceReferenceForcustomer()

container.getHeaderResponse().renderCSSReference(cssResourceReference);
}
}

And then let each of your pages be a child of MyCustomersPage

Stefan
-Ursprüngliche Nachricht-
Von: sahar rostami [mailto:sahar.rost...@gmail.com] 
Gesendet: Mittwoch, 7. April 2010 18:42
An: users@wicket.apache.org
Betreff: Re: resource (css) loading

thank you moèz
but i want to set the location for whole application not a specific file.

On Wed, Apr 7, 2010 at 8:53 PM, moèz ben rhouma benrhouma.m...@gmail.comwrote:

 In java

 add(new StyleSheetReference(stylesheet, BasePage.class, *style.css*));

 style.css is the path of the file style.css (i.e you can write
 /stylesheets/style.css  ...)

 2010/4/7 sahar rostami sahar.rost...@gmail.com

  No , i want to know how wicket knows where is style.css?
 
  On Wed, Apr 7, 2010 at 8:24 PM, moèz ben rhouma 
 benrhouma.m...@gmail.com
  wrote:
 
   If I understand , you can use in constructor of class java the
 following
   code:
   add(new StyleSheetReference(stylesheet, BasePage.class,
 style.css));
  
   and in the html page you add:
   link wicket:id=stylesheet 
  
   2010/4/7 sahar rostami sahar.rost...@gmail.com
  
Thanks MZemeck
But my question in another form is Where wicket load css (which
  class)?
how wicket knows where look up a css file?
   
i'm trying to override default location of css file and read them
 from
path(s) specified in application start up ,but i can't because i
 don't
   know
how wicket loads them.
   
any idea would help me!
thanks
   
   
   
   
   
On Wed, Apr 7, 2010 at 7:50 PM, mzem...@osc.state.ny.us wrote:
   
 One difference I am aware of (and community correct me if I am
  wrong),
 Wicket GZIPs resources.  So if you directly link to the css using
 an
 href you will not have that feature.




 sahar rostami sahar.rost...@gmail.com
 04/07/2010 11:16 AM
 Please respond to
 users@wicket.apache.org


 To
 Wicket User Mailing List users@wicket.apache.org
 cc

 Subject
 resource (css) loading






 Hi all,
 I want to know how wicket loads css files from location specified
 in
 HeaderContributer or using href in  header?

 Thanks in advanced!





 Notice: This communication, including any attachments, is intended
   solely
 for the use of the individual or entity to which it is addressed.
  This
 communication may contain information that is protected from
  disclosure
 under State and/or Federal law. Please notify the sender
 immediately
  if
 you have received this communication in error and delete this email
   from
 your system. If you are not the intended recipient, you are
 requested
   not
 to disclose, copy, distribute or take any action in reliance on the
 contents of this information.
   
  
 


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



AW: Best Practices for Using JavaScript With Wicket

2010-04-06 Thread Stefan Lindner
Hi Nishant,

you should use

component.setOutputMarkupId(true);

this tells wicket to generate a unique markup id. You can refer to the 
generated id with

 component.getMerkupId();

later.

If you want to add some javascript to your page, you may use two different 
tricks:

A: Ajax-related
If you have an AjaxTrigger (e.g. an AjaxLink) do the following

AjaxLink() {
onClick(AjaxRequestTarget target) {
target.appendJavaScript(put your javascript here);
// e.g. doSomethingWithDomelementWithId('+ 
component.getmarkupId()+ ');
}
}

B. during page creation
If you want to bind some javascript during page creation/HTML render time try 
this

Class MyPanel extends Panel {
...

@Override
public void renderHead(HtmlHeaderContainer container) {

container.getHeaderResponse().renderJavascriptReference(add a resource 
reference to your js library here);

container.getHeaderResponse().renderOnDomReadyJavascript(soSomethingWith(' + 
getMarkupId() + '););
}
}

And: Please have a look at the javadocs.

Stefan

-Ursprüngliche Nachricht-
Von: Nishant Neeraj [mailto:nishant.has.a.quest...@gmail.com] 
Gesendet: Dienstag, 6. April 2010 18:02
An: users@wicket.apache.org
Betreff: Re: Best Practices for Using JavaScript With Wicket

Thanks Jeremy.

I had been using component.setMarkupId(..); which is not recommended... so I
was wondering what is the standard.
I need to get hands-on JS-Wicket integration, so I was looking for a good
organized documentation/resource (other than WIA).

 So, what's the objection to using it?

:) Nothing against wiQuery and I, probably, will go with wiQuery... I was
worried if I can integrate various the plug-ins available like jNice (
http://www.whitespace-creative.com/jquery/jNice/) and likes.

Thanks for pointers.
Nishant

On Tue, Apr 6, 2010 at 4:26 AM, Jeremy Thomerson
jer...@wickettraining.comwrote:

 
  I am finding it very cumbersome to integrate JavaScript/JS-library. Can
  someone point to (or probably write a blog-post on :-)  the best
 practices
  of integrating JS/JS-library with Wicket.
 

 Wicket is pretty flexible in that you can integrate your JS a dozen
 different ways.  jQuery is especially easy to integrate with because the
 programming model matches Wicket's fairly nicely.  The primary thing is
 that
 if you want to use element IDs to tie in to jQuery, you'll need to do this
 from behaviors in your java code so that you get the correct ID.


 
  I am using JQuery but I would like to know the best approach without
 using
  WiQuery or jWicket. (Unless, I have to write my own jWicket to get this
  done.)
 

 I'm not sure I understand.  wiQuery has been fairly well recognized as a
 very nice Wicket/jQuery integration.  It has active development and a
 helpful mailing list.  So, what's the objection to using it?  I'm not
 saying
 that you can't have an objection, I just wonder what it is.  It's an open
 source project, so you can use it as a base and add your own functionality
 as needed (hopefully contributing back).

 Even if you don't want to use it, you can see some of the things they are
 doing with it - it has some very nice features, including mergin all the JS
 header contributions into a common (single) resource file.

 --
 Jeremy Thomerson
 http://www.wickettraining.com


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



RE: Handling jquery events

2010-03-31 Thread Stefan Lindner
Hi Josh,

take a look at jWicket in wicketstuff core. There you can find a lot of 
examples how yo can re-act on jQuery events. E.g. ondrop, onresize, onclose, 
onstart...

Stefan

-Ursprüngliche Nachricht-
Von: Josh Kamau [mailto:joshnet2...@gmail.com] 
Gesendet: Mittwoch, 31. März 2010 11:06
An: users@wicket.apache.org
Betreff: Handling jquery events

Hi Team;

 I know i can write java code that handles javascript events e.g onChange()
using Behaviours. Question: Is there way i can handle in the same way jquery
events? or custom javascript events?

 Kind regards

Josh

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



RE: Handling jquery events

2010-03-31 Thread Stefan Lindner
Hi Josh,

take a look at the DatePicker class. Ist almost simple. The general way is to 
generate a wicket ajax call and to catch the call in the respond method of your 
AjaxBehavior. The DatePicker responds e.g. to th onclose oder onselected method 
of jQuery-ui-datepicker.

Stefan

 
-Ursprüngliche Nachricht-
Von: Josh Kamau [mailto:joshnet2...@gmail.com] 
Gesendet: Mittwoch, 31. März 2010 11:26
An: users@wicket.apache.org
Betreff: Re: Handling jquery events

Thanks Stefan. i will.

On Wed, Mar 31, 2010 at 12:22 PM, Stefan Lindner lind...@visionet.dewrote:

 Hi Josh,

 take a look at jWicket in wicketstuff core. There you can find a lot of
 examples how yo can re-act on jQuery events. E.g. ondrop, onresize, onclose,
 onstart...

 Stefan

 -Ursprüngliche Nachricht-
 Von: Josh Kamau [mailto:joshnet2...@gmail.com]
 Gesendet: Mittwoch, 31. März 2010 11:06
 An: users@wicket.apache.org
 Betreff: Handling jquery events

 Hi Team;

  I know i can write java code that handles javascript events e.g onChange()
 using Behaviours. Question: Is there way i can handle in the same way
 jquery
 events? or custom javascript events?

  Kind regards

 Josh

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



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



AW: How to render any Component

2010-03-30 Thread Stefan Lindner
Hi Martin,

this would be very helpful. Until then I will use a workaround and check the 
type of Component.

Stefan.

-Ursprüngliche Nachricht-
Von: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] 
Gesendet: Montag, 29. März 2010 22:05
An: users@wicket.apache.org
Betreff: Re: How to render any Component

Well, I hope one day (1.5?) it will be part of wicket ;) We are trying
to invent some nifty behavior that allows a panel to digest markupless
components.

**
Martin

2010/3/29 Stefan Lindner lind...@visionet.de:
 Hi Martin,

 ok, no easy way, no wicket-builtin tools. Thanks for the proposal.

 Stefan

 -Ursprüngliche Nachricht-
 Von: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com]
 Gesendet: Montag, 29. März 2010 20:13
 An: users@wicket.apache.org
 Betreff: Re: How to render any Component

 Hi!

 Here:
 http://code.google.com/p/wicket-mashup/

 **
 Martin

 2010/3/29 Stefan Lindner lind...@visionet.de:
 How can I implement a Loop or ListView that can display any wicket
 component?

 Let's have a HTML lik this

        div wicket:id=loopdiv wicket:id=item//div

 How can I write a Loop like

        add(new Loop(loop, 10) {
                protected void populateItem(LoopItem item) {
                        item.add( new
 AnyWicketComponentE.G.Image(item) );
                }
        );

 An Image will always throw an Exception like ...must be applied to a
 tag of type 'img', not 

 How can I write my HTML so that I can display an Image, a Label or
 anything else, just on demand?

 Of course, I can place a Panel there but this means I must construct a
 panel with markup etc.

 I playes around with wicket:fragment but this also did not work.

 Or is this impossible?

 The background: I want to create a list of Links where the visual part
 of the link can be a Label, an Image or somthing else.


 Stefan

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



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


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



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


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



jWicket 0.5.7

2010-03-30 Thread Stefan Lindner
jWicket 0.5.7 is comitted to wicktstuff core's trunk. It shows an
implementation of a simple drop down menu. The menu uses jQuery only for
IE6 issues. Take a look at the example TestPage.
As always: if someone needs jar files... let me know.
Teh jQuery-ui-menu implemenatiion is in a very early stats. It's not
even worth looking at it, so please don't report any issues for it.

Stefan

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



RE: better way setting up ID for a Wicket component?

2010-03-30 Thread Stefan Lindner
Yes! 



Von: Boris Goldowsky [mailto:bgoldow...@cast.org]
Gesendet: Di 30.03.2010 23:06
An: users@wicket.apache.org
Betreff: Re: better way setting up ID for a Wicket component?



IDs are needed for e.g. AJAX functionality.  The default Wicket
implementation of markup IDs will create them smartly, never creating
duplicate ids even in the case of multiple instances of panels,
repeaters, etc.

As I understand Wicket best practice, it is never to call setMarkupId()
at all, and just let the smart default thing happen.  If you *must* call
it because you have some special requirement for particular IDs, then
you take on the responsibility for making sure your IDs are unique
yourself.  In this light, a setMarkupIdToWicketId() method is a
dangerous thing.

Bng

David Chang wrote:
 Craig, I really appreciate your input. If a panel is reused more than one 
 time on the same page, then the panel's components should not use IDs in the 
 first place. It would always violate valid HTML. Correct?

 Regards.
  
  

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





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

AW: Fading Content Updates Into a Ajax Refreshing ListView

2010-03-30 Thread Stefan Lindner
Yes, this can be done with javascript. First of all you must decide which 
javascript library you want to use (scriptaculous/jQuery/etc.)
Then you need to load it in your head section (use some HeaderContributor 
class for this).
Now when you repaint yout list items with

target.addComponent(item); 

you may alo append some custom javascript code like this

target.prependJavascript(item.getMarkupId() + ...fadeout/hide/etc.);
target.addComponent(item);
target.appendJavascript(item.getMarkupId() + ...fadein/show/etc.);

Perhaps you need to set the items visibility to (style=display:none) and then 
in the appendHJavascript delete the display:none.

Stefan

-Ursprüngliche Nachricht-
Von: Ayodeji Aladejebi [mailto:aladej...@gmail.com] 
Gesendet: Mittwoch, 31. März 2010 00:32
An: users@wicket.apache.org
Betreff: Fading Content Updates Into a Ajax Refreshing ListView

I am trying to auto refresh a list but also allow the new list updates to
fade in one-by-one similar to these: http://foursquare.com/

I guess its a javascript affair but can I get some assistance as to the
approach to use in wicket

thanks

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



How to render any Component

2010-03-29 Thread Stefan Lindner
How can I implement a Loop or ListView that can display any wicket
component?

Let's have a HTML lik this

div wicket:id=loopdiv wicket:id=item//div

How can I write a Loop like

add(new Loop(loop, 10) {
protected void populateItem(LoopItem item) {
item.add( new
AnyWicketComponentE.G.Image(item) );
}
);

An Image will always throw an Exception like ...must be applied to a
tag of type 'img', not 

How can I write my HTML so that I can display an Image, a Label or
anything else, just on demand?

Of course, I can place a Panel there but this means I must construct a
panel with markup etc.

I playes around with wicket:fragment but this also did not work.

Or is this impossible?

The background: I want to create a list of Links where the visual part
of the link can be a Label, an Image or somthing else.


Stefan

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



AW: How to render any Component

2010-03-29 Thread Stefan Lindner
Hi Martin,

ok, no easy way, no wicket-builtin tools. Thanks for the proposal.

Stefan

-Ursprüngliche Nachricht-
Von: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com] 
Gesendet: Montag, 29. März 2010 20:13
An: users@wicket.apache.org
Betreff: Re: How to render any Component

Hi!

Here:
http://code.google.com/p/wicket-mashup/

**
Martin

2010/3/29 Stefan Lindner lind...@visionet.de:
 How can I implement a Loop or ListView that can display any wicket
 component?

 Let's have a HTML lik this

        div wicket:id=loopdiv wicket:id=item//div

 How can I write a Loop like

        add(new Loop(loop, 10) {
                protected void populateItem(LoopItem item) {
                        item.add( new
 AnyWicketComponentE.G.Image(item) );
                }
        );

 An Image will always throw an Exception like ...must be applied to a
 tag of type 'img', not 

 How can I write my HTML so that I can display an Image, a Label or
 anything else, just on demand?

 Of course, I can place a Panel there but this means I must construct a
 panel with markup etc.

 I playes around with wicket:fragment but this also did not work.

 Or is this impossible?

 The background: I want to create a list of Links where the visual part
 of the link can be a Label, an Image or somthing else.


 Stefan

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



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


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



RE: Wicket JavaScript Library Integration - A Common Base

2010-03-26 Thread Stefan Lindner
This sounds exactly like the thing I'm looking for. A small and simple 
framework for HeaderContribution.

Stefan

-Ursprüngliche Nachricht-
Von: ce...@jweekend.com [mailto:ce...@jweekend.com] Im Auftrag von Cemal 
Bayramoglu
Gesendet: Freitag, 26. März 2010 14:26
An: users
Betreff: Re: Wicket JavaScript Library Integration - A Common Base

Uwe!

I was thinking in terms of a simple core, of well defined and limited
scope. It would provide a clear and well trodden way for people to
integrate their favourite JavaScript libraries with Wicket in a
consistent and effective, tried and tested way.

As you say, there are always going to be potential complications
whenever a single web page depends on more than one version of the
same JavaScript libraries, or sometimes even when some libraries clash
with other, (seemingly) unrelated ones. What I was proposing was not
as a  solution to incompatibilities between such multiple
dependencies. On the other hand, once we had the common base (that
seems to have already attracted some interest and even potential
development support here), an extension, optional for people who
want/need it, could try to manage the versions and other causes of
conflict you talk of, if I understand you correctly.

I am a believer in keeping the core as simple and light as possible
whilst still open (and designed for) potential enhancement with
extended functionality.

Regards - Cemal
jWeekend
OO  Java Technologies, Wicket
Consulting, Development, Training
http://jWeekend.com

2010/3/26 Uwe Schäfer schae...@thomas-daily.de:
 Uwe Schäfer schrieb:

 Hi Cemal,

 I was thinking that it could possibly be sensible to have another
 project where we abstract out the mechanisms wiQuery provides for
 resources and JavaScript statements.

 to keep that topic alive: do you agree that providing a unified way for
 component authors to contribute standard libs to the page, as well as
 coordinating these dependencies on the page level is a primary goal of
 creating this lib?

 cu uwe


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



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


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



RE: Wicketstuff updated!

2010-03-25 Thread Stefan Lindner
Hi Boris,

thank you for doing the job. I have tested jWicket again and everything looks 
fine.

Stefan

-Ursprüngliche Nachricht-
Von: Boris Goldowsky [mailto:bgoldow...@cast.org] 
Gesendet: Mittwoch, 24. März 2010 22:14
An: users@wicket.apache.org
Betreff: Wicketstuff updated!

As discussed, and not hearing any objections, I've updated the 
wicketstuff-core project to depend on Wicket 1.4.7.  wicketstuff-core's 
version number is now 1.4.7-SNAPSHOT, and the idea is that people can 
test it, and barring any major problems it can be released as a stable 
version 1.4.7 .

Now, before people can easily test this, the artifacts need to get into 
the wicket snapshots maven repository, right?  Can someone with the 
requisite permissions make this happen?  In the meantime of course 
people are encouraged to download the projects and build and test them 
locally.

In addition to wicket, the following dependencies were also updated to 
the latest stable version within the same major version of the project.  
I did not attempt to move Lucene from version 2.4.1 to 3.0.1, for 
instance, since more significant changes might be required for this (if 
any subproject is actually using it).

  Jetty: 6.1.22
  Lucene: 2.4.1
  slf4j: 1.5.11
  JUnit: 4.8.1

I had to make a couple of changes to get everything to build with the 
new dependencies (commented out wagon-ssh-external extension from 
inmethod-grid; added new required constructor argument to two instances 
of SpringComponentInjector).  People should test the build and make sure 
these changes are ok.  But at least for me, I can do a mvn install at 
the top level and it works.

Bng


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


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



RE: css resources location

2010-03-25 Thread Stefan Lindner
If you use background-image : url(' '), the path of the url is relative to 
the location of your css.
So if you write background-image : url('images/myimg.png') you need a 
subdirectory imags where your css is
e.g.
   /mypackage/mycss.css
   /mypackages/images/myimg.png

Do you use images like this:

 img src=/somePath/myimg.png/

Then perhaps you should use wicket's Image class

 img wicket:id=myImg/

add(new Image(myImg, ImageResource);

Stefan




-Ursprüngliche Nachricht-
Von: Matias Pansa [mailto:matute...@hotmail.com] 
Gesendet: Donnerstag, 25. März 2010 18:08
An: users@wicket.apache.org
Betreff: css resources location




Hi , i'm new to wicket . I been searching in the list archive for css resource 
problems but i can't found a solution .
My app is developed under netbeans and there's no way to make de css ( file or 
html embedded ) to work with wicket .
I try almost every way that i found on the archive of this list , but nothing 
work.
When i preview the html in the browser everything is ok , css ,images etc , but 
when i deploy to tomcat only css is rendered ok , images are not showed.

here is what i've used :

1 - css embedded in the html file , css is ok but images are no showed , i try 
almost every path ( background-image : url( ) ... ) posible to the images , 
same as the html and java  files , web folder , web-inf , image folder , 
resources ,etc. I check that resource images are in the war file.

2- wicket:head tag with headercontributor.forcss(...) , css and images not 
working at all in every folder of the app.


I try almost every solution found on the mail list , nothing works to show the 
images , so now i'm lost , the most basic solution was put all the css code in 
the html file and nothing.

here is the tree of the app in netbeans :

Shirosecurity -

  -web pages

   -meta-inf
   -web-inf

  -configuration files

  -server resources
 
  -sourcepackages

   -com.myapp.wicket

   --- java and html files

  -test packages

  -libraries


i would apreciate any help on this.




 













  
_
Mirá tus emails ¡cuando te llegan! Hotmail actualiza tu bandeja de entrada 
automáticamente. Ver más
http://www.descubrewindowslive.com/hotmail/actualizacion-guardado.asp

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



RE: Ajax refresh problem with WebMarkupContainer and CSS class in DeploymentMode

2010-03-23 Thread Stefan Lindner
MY HTML-Validator stumbles upon the line

  td class=GenColValuespan wicket:id=value[Yes]/ 
span]/td

Ist the space betwenn / and span.

Maybe Wicket stumbles upon this?

Stefan
-Ursprüngliche Nachricht-
Von: Peter Diefenthaeler [mailto:pdief...@csc.com] 
Gesendet: Dienstag, 23. März 2010 10:29
An: users@wicket.apache.org
Betreff: Ajax refresh problem with WebMarkupContainer and CSS class in 
DeploymentMode



Hi Wicket Folks,
I have a little problem using a WebMarkupContainer with Ajax refresh in 
Deployment Mode.

The page shows a table like the sorting data view example in the Wicket 
Examples. The table resides in a div section with a y-Scrollbar and a 
ButtonPagingNavigator.

My IE7 doesn't show the view in Deployment Mode, while in Development Mode the 
page works fine. If I delete the class attribute in the DIV tag, the page works 
fine in both modes. Adding the CSS class in HTML or as a AttributeModifier in 
the java code makes no difference. Also using a style attribute or using 
wicket:container inside the DIV tag doesn't help.

Markup:
div class=genYScrollContainer wicket:id=configView
  table class=genTable
  tbody
tr wicket:id=sorting
  td class=GenColKey
a href=# wicket:id=detailLinkspan wicket:id= 
key[cnfBTest]/span/a/td
  td class=GenColValuespan wicket:id=value[Yes]/ 
span]/td
/tr
  /tbody
  /table
/div

Java code:

private final WebMarkupContainer configView = new WebMarkupContainer( 
configView); ...
configView.setOutputMarkupId(true);
add(configView);
configView.add(dataView);

Deployment mode:

(Embedded image moved to file: pic08363.gif) Development mode:
(Embedded image moved to file: pic04651.gif)

Thanks in advance,
Peter Diefenthäler

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



RE: Wicketstuff versioning

2010-03-23 Thread Stefan Lindner
Should we really start with a big bang? Support wicketstuff STABLE core 
releases for Wicket 1.4 AND 1.5RCx? Is a RC for Wicket 1.5 in sight? Or does 
this mean everything in wicketstuff will stay as it is for a long time?
Why not start with a smaller step and create a core wicketstuff release for 
current wicket 1.4?

Stefan

-Ursprüngliche Nachricht-
Von: Major Péter [mailto:majorpe...@sch.bme.hu] 
Gesendet: Dienstag, 23. März 2010 11:38
An: users@wicket.apache.org
Betreff: Re: Wicketstuff versioning

2010-03-23 11:24 keltezéssel, Boris Goldowsky írta:
 I may be wrong, but wouldn't it make sense to delay creating a 1.4.x
 branch until/unless someone actually wants to commit some code that
 would be different for 1.4.x and 1.5-SNAPSHOT?  Once we branch, we have
 to start committing every bug fix to two different versions, right?  

Yes, you're right about this, maybe we should wait until the first 1.5
RC with it.

 If we're lucky, everything in Wicketstuff may work fine unchanged with
 1.4 and 1.5, and I suggest we can save ourselves a large amount of
 headache by just maintaining a single trunk, and bumping the version
 after there's an official Wicket release.

As far as I saw, there was some major modifications in the core around
the request-handling and URL-strategies, so this could rise up some issues.

 Of course, correct me if I'm wrong.  I don't know how fundamentally
 different wicket 1.5 is going to be, or if there are a lot of people
 running snapshots of it now who would need Wicketstuff to be tracking
 it.

Is 1.5 RC1 good for everyone? :)

Regards,
Peter

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


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



RE: Dynamic javascript generation

2010-03-21 Thread Stefan Lindner
Generate some Javasript in response to e.g. a button klick?
Or generate JavaScript when the page is rendered?

-Ursprüngliche Nachricht-
Von: Sigmar Muuga [mailto:meedi...@gmail.com] 
Gesendet: Sonntag, 21. März 2010 19:53
An: users@wicket.apache.org
Betreff: Dynamic javascript generation

Hello,
I have to generate some javascript on the server side and then include it
into my page.
Which is the best way to do this with current stable wicket release?

A the moment I am thinking about extending WebResource

Sigmar


  1   2   3   4   >