Three tier layered application using Wicket + Spring + Hibernate. How would you handle transactions?

2009-02-10 Thread Kent Larsson
Hi,

I'm thinking about using the **Open Session In View (OSIV)** filter or
interceptor that comes with Spring, as it seems like a convenient way
for me as a developer. If that's what you recommend, do you recommend
using a filter or an interceptor and why?

I'm also wondering how it will mix with **HibernateTemplate** and if I
will loose the ability to mark methods as *...@transactional(readOnly =
true)** etc and thus loose the ability to get some more fine grained
transaction control?

Is there some kind of best practice for how to integrate this kind of
solution with a three tier architecture using Hibernate, Spring and
Wicket?

If I use OSIV I will at least never run into lazy loading exceptions,
on the other hand my transaction will live longer before being able to
commit by being uncommitted in the view as well.

Best regards, Kent

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



Re: Building and using TinyMCE in Wicket

2009-02-10 Thread Swanthe Lindgren

Try doing a mvn install on the tynimce subfolder.

//Swanthe

ashtek wrote:

Hey all,
  
  I am trying to use TinyMCE, and I downloaded all the source from here - 


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

This creates a folder called tinymce-parent which in turn has two subfolders
tinymce and tinymce-examples.

Whatever I do, I am not able to build using maven. When I say mvn clean
compile or mvn install, i just get a empty jar file in my repo. 


Can someone help?

Thanks!
  




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



Re: Nested forms : don't process inner form when outer form is submitted

2009-02-10 Thread Marieke Vandamme

Thanks for the suggestions, but I'm still not sure how to implement it.
My innerform implements IFormVisitorParticipant. I override
processChildren(), but how do I know which form is getting submitted???
Because when innerform is submitted, i want to return true, otherwise false. 
Thanks for any help!! Marieke.


igor.vaynberg wrote:
 
 try letting your inner form implement IFormVisitorParticipant.
 
 another way is to override isrequired() and check for the submitting
 component.
 
 -igor
 
 On Mon, Feb 9, 2009 at 3:17 AM, Marieke Vandamme ma...@tvh.be wrote:

 Hello,

 I've been reading a lot about nested forms and what should happen with
 the
 inner forms when the outer form gets submitted. But I didn't found out
 how
 you can implement what i'm trying:

 I have inner form with some RequiredTextFields on it. These are required
 when the inner form is processed with an AjaxButton, but not when the
 outer
 form is submitted.

 How can I do this? Thanks for any help !!! Marieke.
 --
 View this message in context:
 http://www.nabble.com/Nested-forms-%3A-don%27t-process-inner-form-when-outer-form-is-submitted-tp21910941p21910941.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
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Nested-forms-%3A-don%27t-process-inner-form-when-outer-form-is-submitted-tp21910941p21929547.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



ApacheCon Europe 2009: Early Bird Deadline Extended

2009-02-10 Thread Martijn Dashorst
Here's some great news for everyone who's thinking of
traveling to Amsterdam for this year's ApacheCon Europe. The Early Bird
deadline has been extended to Friday, February 13th - and remember,
there is a discount of 150 Euro on registration for anyone staying at
the Mövenpick Hotel. Register at http://www.eu.apachecon.com.

ApacheCon is a week of open source goodness straight from the source of
The Apache Software Foundation:

 - More than 60 1-Hour Sessions on System Administration, Development,
  Data Mining and Search Technologies, Enterprise Web Services, SOA,
  and Cloud Technologies, Open Source Business and Community, and more
 - Over a dozen Training Workshops from industry experts (see below)
 - World-class Keynotes and vendor Expo
 - Lightning Talks and Birds-of-a-Feather sessions
 - New this year: Geeks for Geeks Track, BarCampApache, and Hackathon!

ApacheCon Europe 2009 features 2-day, 1-day, and half-day Training
Workshops on the following topics:

 Data Mining and Search Technologies
 ---
 - Lucene Boot Camp  (Grant Ingersoll)
 - Solr Boot Camp  (Erik Hatcher)


 The Next Generation of Web Data Storage
 ---
 - Building Standalone CouchDB Applications (J. Chris Anderson)
 - High Performance CouchDB (J. Chris Anderson)


 Cloud and Distributed Computing Technologies
 
 - Hadoop Tools and Tricks for Data Processing Pipelines
  (Christophe Bisciglia and Aaron Kimball)


 System Administration
 -
 - Apache HTTP Server - Nuts to Bolts  (Jim Jagielski)
 - Everything Tomcat - Administering, Tuning,
  Troubleshooting and Developing  (Mark Thomas)


 Developing State-of-the-Art Web Applications
 
 - A Day of REST  (J Aaron Farr)
 - Apache CXF - Developing and Deploying Open Source
  SOA Endpoints  (Adrian Trenaman)
 - Ajax on Struts 2: How a Second Generation Web Application
  Framework Meets the Demands of RIA  (Chad Michael Davis)
 - Behavior-Driving Your Apache Wicket Application:
  Making the Most of Webdriver and JDave-Wicket (Timo Rantalaiho)


 Building and Managing Java-based Projects
 -
 - Maven Workshop  (Zeger Hendrikse)


 Professional Media Trainings
 
 - Media  Analyst Training (Sally Khudairi)
 - Intermediate Media  Analyst Training (Sally Khudairi)


We hope to see you on the 23-27 March at the Mövenpick Hotel in
Amsterdam! Visit http://www.eu.apachecon.com for further information
and registration details.

Interested in sponsoring the ApacheCon conferences?  Please contact
Delia Frees at de...@apachecon.com for further information.

--
ApacheCon Europe 2009 Team
planners-2009-eu at apachecon.com
http://www.eu.apachecon.com

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



How to add tooltip to ListMultipleChoice.

2009-02-10 Thread Sandeep_Chittajallu
Hi all,
Im new to wicket, I want a solution how we can add the tooltip to the options 
of the ListMultipleChoice.
Thanks
Sandeep


DISCLAIMER:
This email (including any attachments) is intended for the sole use of the 
intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE 
COMPANY INFORMATION. Any review or reliance by others or copying or 
distribution or forwarding of any or all of the contents in this message is 
STRICTLY PROHIBITED. If you are not the intended recipient, please contact the 
sender by email and delete all copies; your cooperation in this regard is 
appreciated.


Portlet 2.0 and Events

2009-02-10 Thread Benjamin Ernst
Hi,

I am trying to get the Event-Support for Portlets working with the Patches I
found in https://issues.apache.org/jira/browse/WICKET-1620;.

But I am not able to apply any of the patches properly.
Can anyone tell me on which revision of the trunk they base, or in which
order I have to apply them?

Thanks for any help!

-- Benjamin


Is it worth to exchange labels by wicket:message?

2009-02-10 Thread Newgro

Hi *,

i investigate some alternatives to achieve same goal in wicket.
One i've found here
http://cwiki.apache.org/WICKET/general-i18n-in-wicket.html

Exchanging the label components by wicket:messages has the advantage of less
code.
But is this relevant for performance and memory usage to? Has someone done
some
tests on this way already?

I only want to be sure that effort of exchange is ok, if i decide to do it.

Thanks for help
Per
-- 
View this message in context: 
http://www.nabble.com/Is-it-worth-to-exchange-labels-by-wicket%3Amessage--tp21930543p21930543.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: [WicketStuff] Progress bar, tasks and feedback messages

2009-02-10 Thread Piller Sébastien

I found a way, if anybody needs it:

...
final ProgressBar bar = new ProgressBar(progress2, progressionModel) {
   @Override
   protected void onFinished(AjaxRequestTarget target) {
   ITaskService taskService = getTaskService();
   Long taskId = progressionModel.getTaskId();

   int errors = 0;
   int warns = 0;

   for (Message m : taskService.getMessages(taskId)) {
   switch (m.severity) {
   case INFO:
   getSession().info(m.messageKey);
   break;
   case WARN:
   warns++;
   getSession().warn(m.messageKey);
   break;
   case ERROR:
   errors++;
   getSession().error(m.messageKey);
   break;
   }
   }

   if (target != null) {
   if (errors == 0) {
   if (warns == 0) {
   target.appendJavascript(alert('Task 
done!\\nTâche terminée!\\nArbeit fertig!'));

   } else {
   target.appendJavascript(alert('Task done, 
with  + warns +  warnings!\\nTâche terminée, avec  + warns
   +  warnings!\\nArbeit fertig, mit  
+ warns +  warnings!'));

   }
   } else {
   target.appendJavascript(alert('Warning! There 
was  + errors +  error(s)!\\nAttention! Il y a eu  + errors
   +  erreur(s)!\\nAchtung! Es ist  + 
errors +  Fehler(n)!'));

   }
   }
   taskService.finish(taskId);
   setVisible(false);
   }
...


Works well ;)


Piller Sébastien a écrit :

Hello,

I'm using wicketstuff-progressbar and it works very well (great job 
Christopher!). I was wondering how I can add feedbacks messages to the 
process (I need to display some warning informations when some work 
has been done but not completely).


I tried both /Task#warn/ and /Session#warn/. /Task#warn/ doesn't work 
(my feedback panel stays empty, even when I try to refresh it with 
/AjaxRequestTarget#addComponent/), and Session#warn throw an exception 
(/IllegalStateException, you can only locate or create sessions in the 
context of a request cycle/)


I've searched the doc and the example, but couldn't find any example 
of this feature.


Any clue?

Thank you ;)

-
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: Portlet 2.0 and Events

2009-02-10 Thread Thijs

They are based on wicket truck *before* WICKET-2058 was committed.
Nobody has updated the patches since then.

Thijs


On 10-2-2009 10:25, Benjamin Ernst wrote:

Hi,

I am trying to get the Event-Support for Portlets working with the Patches I
found in https://issues.apache.org/jira/browse/WICKET-1620;.

But I am not able to apply any of the patches properly.
Can anyone tell me on which revision of the trunk they base, or in which
order I have to apply them?

Thanks for any help!

-- Benjamin

   



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



Re: Is it worth to exchange labels by wicket:message?

2009-02-10 Thread Jonas
I don't think its relevant for performance/memory, the overhead for dynamically
creating a component for the label should be minmal.
check out WicketMessageTagHandler to see the actual 'magic'

On Tue, Feb 10, 2009 at 10:51 AM, Newgro per.new...@gmx.ch wrote:

 Hi *,

 i investigate some alternatives to achieve same goal in wicket.
 One i've found here
 http://cwiki.apache.org/WICKET/general-i18n-in-wicket.html

 Exchanging the label components by wicket:messages has the advantage of less
 code.
 But is this relevant for performance and memory usage to? Has someone done
 some
 tests on this way already?

 I only want to be sure that effort of exchange is ok, if i decide to do it.

 Thanks for help
 Per
 --
 View this message in context: 
 http://www.nabble.com/Is-it-worth-to-exchange-labels-by-wicket%3Amessage--tp21930543p21930543.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



urlFor and putClassAlias

2009-02-10 Thread Steve Swinsburg
Hi all,In my application I am generating a link to a page like so:final String url = "" style="color: #7f0055">class, null).toString(); and then that link is put in an email. However the link includes the package name:e.g.%3Fwicket%3AbookmarkablePage%3D%3Asome.package.name.goes.here.MyPageI have seen some use of putClassAlias so that it might look like:bookmarkablePage=myAliasbut can't seem to get this going.The notes I read say :Did you know you can define page class alias to not expose your package structure in the URL? Just useapplication.getPages().putClassAlias(MyPage.class, "myAlias");The URL will than look likehttp://.../myApp?bookmarkablePage=myAliasbut that doesn't seem to be valid. The only use of putClassAlias I have seen is in the SharedResources class.In any case it doesn't work for my purposes.How can I get the two working together?Wicket 1.3.5cheers,Steve 

smime.p7s
Description: S/MIME cryptographic signature


[ANNOUNCE] Apache Wicket 1.4 release candidate 2

2009-02-10 Thread Frank Bille Jensen
The Apache Wicket team is proud to present the second release  
candidate of Apache Wicket 1.4. This is the first Wicket version with  
java 1.5 as minimum requirement.


Eager people click here to download the distribution, others can read  
further:


* http://www.apache.org/dyn/closer.cgi/wicket/1.4-rc2

We thank you for your patience and support.

The Wicket Team

- Apache Wicket

Apache Wicket is a component oriented Java web application framework.  
With proper mark-up/logic separation, a POJO data model, and a  
refreshing lack of XML, Apache Wicket makes developing web-apps simple  
and enjoyable again. Swap the boilerplate, complex debugging and  
brittle code for powerful, reusable components written with plain Java  
and HTML.

You can find out more about Apache Wicket on our website:

* http://wicket.apache.org

- This release
The Apache Wicket team is proud to announce the availability of the  
third milestone release of our first java 1.5 Wicket version: Apache  
Wicket 1.4-m3. This is the first release with java 1.5 as a minimum.  
Almost everything has been converted to java 1.5. If you find  
something missing, please help us and send a message to the dev@ or  
user@ list.


Migrating from 1.3
If you are coming from Wicket 1.3, you really want to read our  
migration guide, found on the wiki:


* http://cwiki.apache.org/WICKET/migrate-14.html

- Downloading the release
You can download the release from the official Apache mirror system,  
and you can find it through the following link:


* http://www.apache.org/dyn/closer.cgi/wicket/1.4-rc2/
For the Maven and Ivy fans out there: update your pom's to the  
following, and everything will be downloaded automatically:


dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket/artifactId
version1.4-rc2/version
/dependency
Substitute the artifact ID with the projects of your liking to get the  
other projects.


Please note that we don't prescribe a Logging implementation for  
SLF4J. You need to specify yourself which one you prefer. Read more  
about SLF4J here: http://slf4j.org


- Validating the release
The release has been signed by Frank Bille, your release manager for  
today. The public key can be found in the KEYS file in the download  
area. Download the KEYS file only from the Apache website.


* http://www.apache.org/dist/wicket/1.4-rc2/KEYS
Instructions on how to validate the release can be found here:

* http://www.apache.org/dev/release-signing.html#check-integrity

- Reporting bugs
In case you do encounter a bug, we would appreciate a report in our  
JIRA:


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

- The distribution
In the distribution you will find a README. The README contains  
instructions on how to build from source yourself. You also find a  
CHANEGELOG-1.4 which contains a list of all things that have been  
fixed, added and/or removed since the first release in the 1.4 branch.


Release Notes - Wicket - Version 1.4-RC2

Sub-task
• WICKET-1678 - integrate code into extensions
• WICKET-1875 - create javadoc for existing portal imeplementation
	• WICKET-2058 - Upgrade Wicket Portlet Support to only use native  
Portlet API 2.0

Bug
• WICKET-693 - What to do with the wicket dtd?
• WICKET-1314 - DateTimeField does not correct the timezone properly
• WICKET-1360 - Wrong path separator in reloading classloader patterns
• WICKET-1403 - Reinjection fails after Server restart
	• WICKET-1483 - Unusual ClassCastException (SimpleAttributeModifier  
to IBehaviorListener) processing onError.
	• WICKET-1504 - AutoCompleteTextField - javascript error type  
mismatch in line 227 in IE
	• WICKET-1513 - input tag with type=image results in null pointer  
exception in AutoLinkResolver
	• WICKET-1605 - onclick is null or not an object in IE6, IE7;  
Form.appendDefaultButtonField

• WICKET-1619 - PagingNavigator.setEnabled(false) doesn't work
• WICKET-1621 - Misleading example works despite error
	• WICKET-1647 - SqlTimestampConverter drops the date portion of a  
Timestamp
	• WICKET-1663 - Wicket tries to decode servlet path that already has  
been decoded by servlet container
	• WICKET-1677 - AjaxFormChoiceComponentUpdatingBehavior affects  
checkboxes even if component uses radios and vice-versa
	• WICKET-1689 - style resources not looked up correctly in markup  
inheritance
	• WICKET-1691 - StringResourceModel honors container's key (rather  
than its own)
	• WICKET-1718 - WebPage#onAfterRender erroneously reports missing  
header
	• WICKET-1750 - Inconsisting Handling of id mismatch on  
wicket:container
	• WICKET-1781 - ParentResourceEscapePathTest fails on OS X using cmd  
line maven
	• WICKET-1794 - WicketTester.clickLink and  
IndexedParamUrlCodingStrategy don't work together
	• WICKET-1812 - Header contributions occur even though rendering is  
not allowed by authorization strategy
	• WICKET-1851 - Default lookup keys don't work when  

Re: urlFor and putClassAlias

2009-02-10 Thread Martijn Dashorst
Mount your page using one of the mount strategies. See
Application#mount for inspiration.

Martijn

On Tue, Feb 10, 2009 at 12:01 PM, Steve Swinsburg
s.swinsb...@lancaster.ac.uk wrote:
 Hi all,
 In my application I am generating a link to a page like so:
 final String url = urlFor(MyPage.class, null).toString();

 and then that link is put in an email. However the link includes the package
 name:
 e.g. %3Fwicket%3AbookmarkablePage%3D%3Asome.package.name.goes.here.MyPage
 I have seen some use of putClassAlias so that it might look like:
 bookmarkablePage=myAlias
 but can't seem to get this going.
 The notes I read say :
 Did you know you can define page class alias to not expose your package
 structure in the URL? Just
 use application.getPages().putClassAlias(MyPage.class, myAlias); The URL
 will than look like http://.../myApp?bookmarkablePage=myAlias

 but that doesn't seem to be valid. The only use of putClassAlias I have seen
 is in the SharedResources class. In any case it doesn't work for my
 purposes.
 How can I get the two working together?
 Wicket 1.3.5

 cheers,
 Steve









-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



Re: Portlet 2.0 and Events

2009-02-10 Thread Benjamin Ernst
Hi Thijs,

do I have to apply all Patches, or is the 
WICKET-1620-portlet2.0-tight.patchhttps://issues.apache.org/jira/secure/attachment/12396786/WICKET-1620-portlet2.0-tight.patch
enough?

Thanks,

-- Benjamin

On Tue, Feb 10, 2009 at 11:07 AM, Thijs vonk.th...@gmail.com wrote:

 They are based on wicket truck *before* WICKET-2058 was committed.
 Nobody has updated the patches since then.

 Thijs



 On 10-2-2009 10:25, Benjamin Ernst wrote:

 Hi,

 I am trying to get the Event-Support for Portlets working with the Patches
 I
 found in https://issues.apache.org/jira/browse/WICKET-1620;.

 But I am not able to apply any of the patches properly.
 Can anyone tell me on which revision of the trunk they base, or in which
 order I have to apply them?

 Thanks for any help!

 -- Benjamin





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




Javadocs for Wicket 1.4 online

2009-02-10 Thread Frank Bille Jensen

Hi all,

I have put the javadocs for 1.4-rc2 online. You can find them through  
the wicket website or directly on this URL:


http://wicket.apache.org/docs/1.4

Regards,
Frank

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



DataCrud mechanism

2009-02-10 Thread Michal Hybler

Hi!

I have question about selecting system of DataCrud. I have datacrud which
displays 3 rows on page (for testing). For that 3 objects it make 5
selects First for all data and later for each row separately (3 rows for
page and extra one for next page existence). 
Is it right to make that much selects? Why?
What is method Object load() in DetachableModel for? (I think it makes
that selects)

Maybe i have implemented bad model. Its my first DataCrud implementation
(and wicket project also).

Thanx for any explanations.

With regards Michal
-- 
View this message in context: 
http://www.nabble.com/DataCrud-mechanism-tp21931566p21931566.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: Portlet 2.0 and Events

2009-02-10 Thread Thijs
That last one contains all the functionality, but a large part of the 
2.0 spec that was also added in this patch does not match the one that 
went into trunk via WICKET-2058.
That has been altered rather drastically so you'll have to do some major 
re-factoring to get everything back in.



On 10-2-2009 12:07, Benjamin Ernst wrote:

Hi Thijs,

do I have to apply all Patches, or is the 
WICKET-1620-portlet2.0-tight.patchhttps://issues.apache.org/jira/secure/attachment/12396786/WICKET-1620-portlet2.0-tight.patch
enough?

Thanks,

-- Benjamin

On Tue, Feb 10, 2009 at 11:07 AM, Thijsvonk.th...@gmail.com  wrote:

   

They are based on wicket truck *before* WICKET-2058 was committed.
Nobody has updated the patches since then.

Thijs



On 10-2-2009 10:25, Benjamin Ernst wrote:

 

Hi,

I am trying to get the Event-Support for Portlets working with the Patches
I
found in https://issues.apache.org/jira/browse/WICKET-1620;.

But I am not able to apply any of the patches properly.
Can anyone tell me on which revision of the trunk they base, or in which
order I have to apply them?

Thanks for any help!

-- Benjamin



   

-
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



private wizardModel field in WizardStep

2009-02-10 Thread jensiator

Hi
I would like to get the wizardmodel in a class that extends from WizardStep.
The WizardStep contains the wizardmodel put it not accessable from the
extended class.  Does anyone know why? I can get hold of the wizardmodel if
I override onInit(Wizardmodel) in my WizardStep and add it as a member. But
should I? Is there a reason why the wizardmodel is private inside of the
wizardstep? 

Jens Alenius
-- 
View this message in context: 
http://www.nabble.com/private-wizardModel-field-in-WizardStep-tp21932325p21932325.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: Nested forms : don't process inner form when outer form is submitted

2009-02-10 Thread John Krasnay
Have a look at the bottom of this page:

http://cwiki.apache.org/WICKET/conditional-validation.html

The example shown disables the whole inner form when the outer form is
submitted, meaning the inner form won't even be submitted. If you want
the inner form to be submitted but just not required, remove the
isEnabled override and implement isRequired on your text fields with
similar code.

jk

On Tue, Feb 10, 2009 at 12:33:00AM -0800, Marieke Vandamme wrote:
 
 Thanks for the suggestions, but I'm still not sure how to implement it.
 My innerform implements IFormVisitorParticipant. I override
 processChildren(), but how do I know which form is getting submitted???
 Because when innerform is submitted, i want to return true, otherwise false. 
 Thanks for any help!! Marieke.
 
 
 igor.vaynberg wrote:
  
  try letting your inner form implement IFormVisitorParticipant.
  
  another way is to override isrequired() and check for the submitting
  component.
  
  -igor
  
  On Mon, Feb 9, 2009 at 3:17 AM, Marieke Vandamme ma...@tvh.be wrote:
 
  Hello,
 
  I've been reading a lot about nested forms and what should happen with
  the
  inner forms when the outer form gets submitted. But I didn't found out
  how
  you can implement what i'm trying:
 
  I have inner form with some RequiredTextFields on it. These are required
  when the inner form is processed with an AjaxButton, but not when the
  outer
  form is submitted.
 
  How can I do this? Thanks for any help !!! Marieke.
  --
  View this message in context:
  http://www.nabble.com/Nested-forms-%3A-don%27t-process-inner-form-when-outer-form-is-submitted-tp21910941p21910941.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
  
  
  
 
 -- 
 View this message in context: 
 http://www.nabble.com/Nested-forms-%3A-don%27t-process-inner-form-when-outer-form-is-submitted-tp21910941p21929547.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: mountBookmarkablePage changes delimiter of PageParameters

2009-02-10 Thread Fabrizio Giudici
Of course the arguments in my example have been copied in a hurry from 
working code, the former is the path and the latter the page class:


mount(new QueryStringUrlCodingStrategy(path, class));


--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
fabrizio.giud...@tidalwave.it - mobile: +39 348.150.6941


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



Re: mountBookmarkablePage changes delimiter of PageParameters

2009-02-10 Thread Steve Swinsburg

Thanks Fabrizio I'll give it a go.

Re having a default parameter, I found this that may help? Haven't  
tried it myself:


use IndexedParamUrlCodingStrategy to mount your page.
e.g.
params.put(0, foo);
params.put(1, bar);
params.put(2, cux);
will result in mountpoint/foo/bar/cux (in that order)



cheers,
Steve





On 10 Feb 2009, at 13:45, Fabrizio Giudici wrote:

Of course the arguments in my example have been copied in a hurry  
from working code, the former is the path and the latter the page  
class:


mount(new QueryStringUrlCodingStrategy(path, class));


--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
fabrizio.giud...@tidalwave.it - mobile: +39 348.150.6941


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





smime.p7s
Description: S/MIME cryptographic signature


AjaxSubmitLink submitting twice

2009-02-10 Thread Matt Welch

I'm stumped. We have an AjaxSubmitLink and when clicked, the onSubmit of the
link is being executed twice. This is causing havok in our app. I've
winnowed it down to just the simplest example but I still see this taking
place. I'm not sure how to proceed. Here's the example code:
-
!DOCTYPE html
PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
body
form action=# wicket:id=testForm
input wicket:id=keyword type=text /
 # Search 
/form
/body
/html
-
public class TestAjaxSubmitLink extends WebPage {
private String fieldValue;

public TestAjaxSubmitLink() {

Form form = new Form(testForm);
add(form);
final TextField search = new TextField(keyword, new 
PropertyModel(this,
fieldValue));

form.add(search);
form.add(new AjaxSubmitLink(search){
protected void onSubmit(AjaxRequestTarget target, Form 
form) {
System.out.println(Clicked Submit);
}
});
}
}
-

We're using an older version of Wicket, but I tested this in 1.3.5 also and
got the same behavior. I find it hard to believe that we would be the first
to experience this behavior so I assume we're doing something wrong, but I'm
just not sure what it is. Any advice? 

-Matt
-- 
View this message in context: 
http://www.nabble.com/AjaxSubmitLink-submitting-twice-tp21934491p21934491.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: mountBookmarkablePage changes delimiter of PageParameters

2009-02-10 Thread Erik van Oosten

Steve,

Try to mount with the MixedParamUrlCodingStrategy.

Regards,
   Erik.


Steve Swinsburg wrote:



Hi all,

I have just noticed that mountBookmarkablePage changes 
the delimiters of query string object to be all forward slashes. Why 
is this?

For instance I want to get a url to a page class:
urlFor(MyPage.class, new PageParameters(id= + userId)).toString());

which gives:
?wicket:bookmarkablePage=:my.package.here.MyPageid=123456789


which is fine, but I wanted to get rid of the package name, so I 
mounted the page like so:


mountBookmarkablePage(/myPage, MyPage.class);

and the same urlFor result gives:

myPage/id/123456789/


In my circumstances I cannot have slashes (legacy restriction) and 
must have the ?= style parameters but I still need the package to be 
hidden, how could I go about doing this?





cheers,
Steve









--

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



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



[OT] Sitepoint 5-for-1 Book Offer

2009-02-10 Thread Serkan Camurcuoglu
I learnt that Sitepoint is giving away five web design/development 
related pdf books for the price of one book ($29.95) to support the 
people affected by the bushfires in Australia. I thought the people on 
this list may be interested. You can access the offer at 
http://5for1.aws.sitepoint.com/ . Sorry for the disturbance.


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



setting the value of a radio input field

2009-02-10 Thread Story Henry

Hi,

I have been looking at how to set the value of a radio input field to  
a value of my choosing.

If I use the Radio and Radio Group code as shown here: 
http://pastebin.com/m40b9b073
I get html such as

input wicket:id=radio type=radio value=radio2  
name=selectionGroup/
input wicket:id=radio type=radio value=radio3  
name=selectionGroup/

...

whereas I was hoping to get

input wicket:id=radio type=radio value=http://bblfish.net/people/henry/card#me 
 name=selectionGroup/


Searching the web I found the thread Setting a relevant value for  
radio buttons without using RadioChoice from December 2008 (  http://tinyurl.com/cpfj49 
 ) I came to understand that RadioGroup saves all the mapping itself.  
I would rather it did not, reducing the load on the server, as I am  
using URLs as primary keys. This more RESTful and I think clearner.


So if I cannot set this using the Radio component I thought perhaps I  
can use an AttributeModifier with code like the following:


class ChoiceForm extends Form {

   ChoiceForm(String string, ListAgent agents) {
  super(string);
  ListView persons;
  add(persons=new ListView(person, agents) {

 @Override
 protected void populateItem(ListItem item) {
Agent agt = (Agent) item.getModelObject();
Component radio = item.get(radio); //this is wrong!  
looking for solution
 radio.add(new AttributeModifier(value,new  
Model(agt.getWebID().toString(;

item.add(new Label(name, agt.getName()));
item.add(new Label(uri, agt.getWebID().toString()));
 }
  });
  persons.setReuseItems(true);
   }
}

I am not sure how one can get a component in the populateItem function  
so that one can then

change the attribute for it.

The html I am trying to work with is this:

form wicket:id=select
  input type=submit name=Select/
  span wicket:id=selectionGroup
  span wicket:id=person
p
input wicket:id=radio type=radio value=http://bblfish.net/people/henry/card#me 
/

table
  trtdName/tdtd wicket:id=nameHenry Story/td/tr
  trtdURI/tdtd wicket:id=urihttp://bblfish.net/people/henry/card#me 
/td/tr

/table
/p
  /span
  /span
  input type=submit name=Select/
 /form

Any suggestions as to where I should look for more information. I have  
searched all over the internet and Wicket In Action, but without  
success.


Henry Story

Blog: http://blogs.sun.com/bblfish


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



Re: Three tier layered application using Wicket + Spring + Hibernate. How would you handle transactions?

2009-02-10 Thread James Carman
Here's the demo code I used for a talk on wicket a while back.  It
includes OSIV and has an example of doing a repository (think DAO)

http://svn.carmanconsulting.com/public/wicket-advanced/trunk


On Tue, Feb 10, 2009 at 3:15 AM, Kent Larsson kent.lars...@gmail.com wrote:
 Hi,

 I'm thinking about using the **Open Session In View (OSIV)** filter or
 interceptor that comes with Spring, as it seems like a convenient way
 for me as a developer. If that's what you recommend, do you recommend
 using a filter or an interceptor and why?

 I'm also wondering how it will mix with **HibernateTemplate** and if I
 will loose the ability to mark methods as *...@transactional(readOnly =
 true)** etc and thus loose the ability to get some more fine grained
 transaction control?

 Is there some kind of best practice for how to integrate this kind of
 solution with a three tier architecture using Hibernate, Spring and
 Wicket?

 If I use OSIV I will at least never run into lazy loading exceptions,
 on the other hand my transaction will live longer before being able to
 commit by being uncommitted in the view as well.

 Best regards, Kent

 -
 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: [OT] Java hosting USB stick deployment

2009-02-10 Thread Philip A. Chapman
As far as the OS is concerned, the USB stick is just another volume, so 
you can run it from jetty or any other container stored on the USB 
stick.  The trick is, of course, size, and the fact that the stick can 
be removed.  Another thing to consider is that a java runtime will be 
required.


I don't know exactly what you are trying to accomplish.  I know that 
vendors early on used automount batch scripts on CD's in order to have 
java applications begin running when a CD is first inserted.  It's been 
a long time since I've worked in the windows world, but I'd think that 
this was still possible.  You'd need the java runtime on your USB stick. 
 My recommendation would then to start your application running in 
jetty much like you'd start any java application (see the quickstart 
project).


I have no predictions on how long it would continue to run if someone 
should remove the USB stick while the above application is running aside 
from the fact that it would probably crash with class not found exceptions.


I am also interested in whether people from the list have made 
experiences with running Wicket on USB sticks?



--
Philip A. Chapman

Desktop, Web Application, and Enterprise Development
Phone: 251-275-6237

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



Auto-Complete TextField for selecting multiple values

2009-02-10 Thread Azzeddine Daddah
Hi guys,

Does somebody knows if there is already such a Wicket lib/component where
you can select more then one value. Something like this one
http://www.emposha.com/javascript/jquery/jquerymultiselect.html,
http://digitarald.de/project/autocompleter/1-1/showcase/delicious-tags or
http://remysharp.com/wp-content/uploads/2007/12/tagging.php


Kind regards,

Hbiloo


Re: How to handle this exception properly

2009-02-10 Thread Igor Vaynberg
should be fine, you can throw any kind of runtime exception you want.

-igor

On Mon, Feb 9, 2009 at 11:57 PM, Anton Veretennikov
anton.veretenni...@gmail.com wrote:
 Hello, all wicket users!

 I receive HTTP Status 500 error in this situation:

 I have a page with empty html-file and page's onRender() looks like:

OutputStreamWriter writer = null;
try {
  writer = new OutputStreamWriter(getResponse().getOutputStream(),
 encoding);
  String enc = getRequestCycle().getResponse().getCharacterEncoding();
  writer.append(!-- + enc + --\n);
  writer.append(.);
} catch (UnsupportedEncodingException ex) {
  throw new WicketRuntimeException(Invalid charset:  + ex.getMessage());
} catch (IOException ex) {
  throw new WicketRuntimeException(IOException:  + ex.getMessage());
} finally {
  if (writer != null) {
try {
  writer.close();
} catch (IOException ex) {
}
  }
}


 The problem is when this first catch is reached (because encoding
 desired is sent as a parameter that could be errouneous) and

  new WicketRuntimeException(Invalid charset:  + ex.getMessage());

 is thrown I see HTTP Status 500 error with this:

 ERROR - WicketFilter   - closing the buffer error
 java.lang.IllegalStateException: getOutputStream() has already been
 called for this response
at org.apache.catalina.connector.Response.getWriter(Response.java:610)
at 
 org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)
at 
 org.apache.wicket.protocol.http.WebResponse.write(WebResponse.java:365)
at 
 org.apache.wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:73)
at 
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:471)
at 
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)

 I would like to know is it proper to throw WicketRuntimeException in
 such situation.
 For example I want to show standart Wicket Error page.

 Thank you very much.

 -- Tony

 -
 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: private wizardModel field in WizardStep

2009-02-10 Thread Igor Vaynberg
added getter to 1.4 trunk.

-igor

On Tue, Feb 10, 2009 at 4:10 AM, jensiator jens.alen...@megasol.se wrote:

 Hi
 I would like to get the wizardmodel in a class that extends from WizardStep.
 The WizardStep contains the wizardmodel put it not accessable from the
 extended class.  Does anyone know why? I can get hold of the wizardmodel if
 I override onInit(Wizardmodel) in my WizardStep and add it as a member. But
 should I? Is there a reason why the wizardmodel is private inside of the
 wizardstep?

 Jens Alenius
 --
 View this message in context: 
 http://www.nabble.com/private-wizardModel-field-in-WizardStep-tp21932325p21932325.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: AjaxSubmitLink submitting twice

2009-02-10 Thread Igor Vaynberg
your example markup does not contain search component. it is much
better to open a jira issue and attach a quickstart that reproduces
the problem.

-igor

On Tue, Feb 10, 2009 at 6:12 AM, Matt Welch matt...@welchkin.net wrote:

 I'm stumped. We have an AjaxSubmitLink and when clicked, the onSubmit of the
 link is being executed twice. This is causing havok in our app. I've
 winnowed it down to just the simplest example but I still see this taking
 place. I'm not sure how to proceed. Here's the example code:
 -
 !DOCTYPE html
PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
 body
form action=# wicket:id=testForm
input wicket:id=keyword type=text /
 # Search
/form
 /body
 /html
 -
 public class TestAjaxSubmitLink extends WebPage {
private String fieldValue;

public TestAjaxSubmitLink() {

Form form = new Form(testForm);
add(form);
final TextField search = new TextField(keyword, new 
 PropertyModel(this,
 fieldValue));

form.add(search);
form.add(new AjaxSubmitLink(search){
protected void onSubmit(AjaxRequestTarget target, Form 
 form) {
System.out.println(Clicked Submit);
}
});
}
 }
 -

 We're using an older version of Wicket, but I tested this in 1.3.5 also and
 got the same behavior. I find it hard to believe that we would be the first
 to experience this behavior so I assume we're doing something wrong, but I'm
 just not sure what it is. Any advice?

 -Matt
 --
 View this message in context: 
 http://www.nabble.com/AjaxSubmitLink-submitting-twice-tp21934491p21934491.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: setting the value of a radio input field

2009-02-10 Thread Thomas Mäder
The approach with

Component radio= new Radio(radio, ...);

is the right one. You can still try to add the AttributeModifier, but
probably, you'll end up fighting the Radio implementation (perhaps you'll
have to create a subclass?)
However, I don't see why you don't just use the regular wicket approach? Did
you actually measure that there is more load on the server? I highly doubt
it.

Thomas

On Tue, Feb 10, 2009 at 4:35 PM, Story Henry henry.st...@bblfish.netwrote:

 Hi,

 I have been looking at how to set the value of a radio input field to a
 value of my choosing.
 If I use the Radio and Radio Group code as shown here:
 http://pastebin.com/m40b9b073
 I get html such as

 input wicket:id=radio type=radio value=radio2
 name=selectionGroup/
 input wicket:id=radio type=radio value=radio3
 name=selectionGroup/
 ...

 whereas I was hoping to get

 input wicket:id=radio type=radio value=
 http://bblfish.net/people/henry/card#me; name=selectionGroup/

 Searching the web I found the thread Setting a relevant value for radio
 buttons without using RadioChoice from December 2008 (
 http://tinyurl.com/cpfj49 ) I came to understand that RadioGroup saves all
 the mapping itself. I would rather it did not, reducing the load on the
 server, as I am using URLs as primary keys. This more RESTful and I think
 clearner.

 So if I cannot set this using the Radio component I thought perhaps I can
 use an AttributeModifier with code like the following:

 class ChoiceForm extends Form {

   ChoiceForm(String string, ListAgent agents) {
  super(string);
  ListView persons;
  add(persons=new ListView(person, agents) {

 @Override
 protected void populateItem(ListItem item) {
Agent agt = (Agent) item.getModelObject();
Component radio = item.get(radio); //this is wrong! looking
 for solution
 radio.add(new AttributeModifier(value,new
 Model(agt.getWebID().toString(;
item.add(new Label(name, agt.getName()));
item.add(new Label(uri, agt.getWebID().toString()));
 }
  });
  persons.setReuseItems(true);
   }
 }

 I am not sure how one can get a component in the populateItem function so
 that one can then
 change the attribute for it.

 The html I am trying to work with is this:

 form wicket:id=select
  input type=submit name=Select/
  span wicket:id=selectionGroup
  span wicket:id=person
p
input wicket:id=radio type=radio value=
 http://bblfish.net/people/henry/card#me/
table
  trtdName/tdtd wicket:id=nameHenry Story/td/tr
  trtdURI/tdtd wicket:id=uri
 http://bblfish.net/people/henry/card#me/td/tr
/table
/p
  /span
  /span
  input type=submit name=Select/
  /form

 Any suggestions as to where I should look for more information. I have
 searched all over the internet and Wicket In Action, but without success.

Henry Story

 Blog: http://blogs.sun.com/bblfish


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




-- 
Thomas Mäder
Wicket  Eclipse Consulting
www.devotek-it.ch


Re: Auto-Complete TextField for selecting multiple values

2009-02-10 Thread Ryan Gravener
I'll implement the first one in due time.  It is not as fluid as i would
hope though.


http://ryangravener.com/flex | http://twitter.com/ryangravener


On Tue, Feb 10, 2009 at 11:01 AM, Azzeddine Daddah waarhei...@gmail.comwrote:

 Hi guys,

 Does somebody knows if there is already such a Wicket lib/component where
 you can select more then one value. Something like this one
 http://www.emposha.com/javascript/jquery/jquerymultiselect.html,
 http://digitarald.de/project/autocompleter/1-1/showcase/delicious-tags or
 http://remysharp.com/wp-content/uploads/2007/12/tagging.php


 Kind regards,

 Hbiloo



Re: How to handle this exception properly

2009-02-10 Thread Anton Veretennikov
 should be fine, you can throw any kind of runtime exception you want.

 -igor

Igor, thank you for answer.

Did you mean that HTTP Status 500 error I get is not what it must be?
It's a bug or what? I can make jira if it is so.

-- Tony

 On Mon, Feb 9, 2009 at 11:57 PM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 Hello, all wicket users!

 I receive HTTP Status 500 error in this situation:

 I have a page with empty html-file and page's onRender() looks like:

OutputStreamWriter writer = null;
try {
  writer = new OutputStreamWriter(getResponse().getOutputStream(),
 encoding);
  String enc = getRequestCycle().getResponse().getCharacterEncoding();
  writer.append(!-- + enc + --\n);
  writer.append(.);
} catch (UnsupportedEncodingException ex) {
  throw new WicketRuntimeException(Invalid charset:  + ex.getMessage());
} catch (IOException ex) {
  throw new WicketRuntimeException(IOException:  + ex.getMessage());
} finally {
  if (writer != null) {
try {
  writer.close();
} catch (IOException ex) {
}
  }
}


 The problem is when this first catch is reached (because encoding
 desired is sent as a parameter that could be errouneous) and

  new WicketRuntimeException(Invalid charset:  + ex.getMessage());

 is thrown I see HTTP Status 500 error with this:

 ERROR - WicketFilter   - closing the buffer error
 java.lang.IllegalStateException: getOutputStream() has already been
 called for this response
at org.apache.catalina.connector.Response.getWriter(Response.java:610)
at 
 org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)
at 
 org.apache.wicket.protocol.http.WebResponse.write(WebResponse.java:365)
at 
 org.apache.wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:73)
at 
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:471)
at 
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)

 I would like to know is it proper to throw WicketRuntimeException in
 such situation.
 For example I want to show standart Wicket Error page.

 Thank you very much.

 -- Tony

 -
 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: How to handle this exception properly

2009-02-10 Thread Igor Vaynberg
do you get 500 or do you not?

-igor

On Tue, Feb 10, 2009 at 8:57 AM, Anton Veretennikov
anton.veretenni...@gmail.com wrote:
 should be fine, you can throw any kind of runtime exception you want.

 -igor

 Igor, thank you for answer.

 Did you mean that HTTP Status 500 error I get is not what it must be?
 It's a bug or what? I can make jira if it is so.

 -- Tony

 On Mon, Feb 9, 2009 at 11:57 PM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 Hello, all wicket users!

 I receive HTTP Status 500 error in this situation:

 I have a page with empty html-file and page's onRender() looks like:

OutputStreamWriter writer = null;
try {
  writer = new OutputStreamWriter(getResponse().getOutputStream(),
 encoding);
  String enc = getRequestCycle().getResponse().getCharacterEncoding();
  writer.append(!-- + enc + --\n);
  writer.append(.);
} catch (UnsupportedEncodingException ex) {
  throw new WicketRuntimeException(Invalid charset:  + 
 ex.getMessage());
} catch (IOException ex) {
  throw new WicketRuntimeException(IOException:  + ex.getMessage());
} finally {
  if (writer != null) {
try {
  writer.close();
} catch (IOException ex) {
}
  }
}


 The problem is when this first catch is reached (because encoding
 desired is sent as a parameter that could be errouneous) and

  new WicketRuntimeException(Invalid charset:  + ex.getMessage());

 is thrown I see HTTP Status 500 error with this:

 ERROR - WicketFilter   - closing the buffer error
 java.lang.IllegalStateException: getOutputStream() has already been
 called for this response
at 
 org.apache.catalina.connector.Response.getWriter(Response.java:610)
at 
 org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)
at 
 org.apache.wicket.protocol.http.WebResponse.write(WebResponse.java:365)
at 
 org.apache.wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:73)
at 
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:471)
at 
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)

 I would like to know is it proper to throw WicketRuntimeException in
 such situation.
 For example I want to show standart Wicket Error page.

 Thank you very much.

 -- Tony

 -
 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: How to handle this exception properly

2009-02-10 Thread Anton Veretennikov
I get it.

On Wed, Feb 11, 2009 at 12:01 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 do you get 500 or do you not?

 -igor

 On Tue, Feb 10, 2009 at 8:57 AM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 should be fine, you can throw any kind of runtime exception you want.

 -igor

 Igor, thank you for answer.

 Did you mean that HTTP Status 500 error I get is not what it must be?
 It's a bug or what? I can make jira if it is so.

 -- Tony

 On Mon, Feb 9, 2009 at 11:57 PM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 Hello, all wicket users!

 I receive HTTP Status 500 error in this situation:

 I have a page with empty html-file and page's onRender() looks like:

OutputStreamWriter writer = null;
try {
  writer = new OutputStreamWriter(getResponse().getOutputStream(),
 encoding);
  String enc = getRequestCycle().getResponse().getCharacterEncoding();
  writer.append(!-- + enc + --\n);
  writer.append(.);
} catch (UnsupportedEncodingException ex) {
  throw new WicketRuntimeException(Invalid charset:  + 
 ex.getMessage());
} catch (IOException ex) {
  throw new WicketRuntimeException(IOException:  + ex.getMessage());
} finally {
  if (writer != null) {
try {
  writer.close();
} catch (IOException ex) {
}
  }
}


 The problem is when this first catch is reached (because encoding
 desired is sent as a parameter that could be errouneous) and

  new WicketRuntimeException(Invalid charset:  + ex.getMessage());

 is thrown I see HTTP Status 500 error with this:

 ERROR - WicketFilter   - closing the buffer error
 java.lang.IllegalStateException: getOutputStream() has already been
 called for this response
at 
 org.apache.catalina.connector.Response.getWriter(Response.java:610)
at 
 org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)
at 
 org.apache.wicket.protocol.http.WebResponse.write(WebResponse.java:365)
at 
 org.apache.wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:73)
at 
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:471)
at 
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)

 I would like to know is it proper to throw WicketRuntimeException in
 such situation.
 For example I want to show standart Wicket Error page.

 Thank you very much.

 -- Tony

 -
 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: How to handle this exception properly

2009-02-10 Thread Igor Vaynberg
considering 5xx codes are server-related failures i would say it is correct.

-igor

On Tue, Feb 10, 2009 at 9:03 AM, Anton Veretennikov
anton.veretenni...@gmail.com wrote:
 I get it.

 On Wed, Feb 11, 2009 at 12:01 AM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:
 do you get 500 or do you not?

 -igor

 On Tue, Feb 10, 2009 at 8:57 AM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 should be fine, you can throw any kind of runtime exception you want.

 -igor

 Igor, thank you for answer.

 Did you mean that HTTP Status 500 error I get is not what it must be?
 It's a bug or what? I can make jira if it is so.

 -- Tony

 On Mon, Feb 9, 2009 at 11:57 PM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 Hello, all wicket users!

 I receive HTTP Status 500 error in this situation:

 I have a page with empty html-file and page's onRender() looks like:

OutputStreamWriter writer = null;
try {
  writer = new OutputStreamWriter(getResponse().getOutputStream(),
 encoding);
  String enc = getRequestCycle().getResponse().getCharacterEncoding();
  writer.append(!-- + enc + --\n);
  writer.append(.);
} catch (UnsupportedEncodingException ex) {
  throw new WicketRuntimeException(Invalid charset:  + 
 ex.getMessage());
} catch (IOException ex) {
  throw new WicketRuntimeException(IOException:  + ex.getMessage());
} finally {
  if (writer != null) {
try {
  writer.close();
} catch (IOException ex) {
}
  }
}


 The problem is when this first catch is reached (because encoding
 desired is sent as a parameter that could be errouneous) and

  new WicketRuntimeException(Invalid charset:  + ex.getMessage());

 is thrown I see HTTP Status 500 error with this:

 ERROR - WicketFilter   - closing the buffer error
 java.lang.IllegalStateException: getOutputStream() has already been
 called for this response
at 
 org.apache.catalina.connector.Response.getWriter(Response.java:610)
at 
 org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)
at 
 org.apache.wicket.protocol.http.WebResponse.write(WebResponse.java:365)
at 
 org.apache.wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:73)
at 
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:471)
at 
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)

 I would like to know is it proper to throw WicketRuntimeException in
 such situation.
 For example I want to show standart Wicket Error page.

 Thank you very much.

 -- Tony

 -
 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



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



Handling 'raw' XMLHttpRequests

2009-02-10 Thread GW72

I'm a newbie to Wicket, and I'm trying to determine if there's any particular
type of construct which would allow me to service an Ajax request from the
client.

I'm aware of some of the Ajax enabled components in the framework. However,
I'm looking for something more basic - this would be where I fire an
XMLHttpRequest from client-side code, completely outwith the control of any
particular component. Is there any type of behaviour/listener I could
implement that would allow me to capture this event server side, do the
necessary processing (ideally with access to the WebApplication and other
objects under the control of Wicket such as session data etc., which I guess
would rule out using resources) and then post a response in a manner which
isn't bound to a particular component, and could just be handled client-side
with the usual (for Ajax) callback mechanism?

Thanks in anticipation!
-- 
View this message in context: 
http://www.nabble.com/Handling-%27raw%27-XMLHttpRequests-tp21938828p21938828.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: How to handle this exception properly

2009-02-10 Thread Anton Veretennikov
How to get standart Error page then instead of this error?

 considering 5xx codes are server-related failures i would say it is correct.

 -igor

 On Tue, Feb 10, 2009 at 9:03 AM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 I get it.

 On Wed, Feb 11, 2009 at 12:01 AM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:
 do you get 500 or do you not?

 -igor

 On Tue, Feb 10, 2009 at 8:57 AM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 should be fine, you can throw any kind of runtime exception you want.

 -igor

 Igor, thank you for answer.

 Did you mean that HTTP Status 500 error I get is not what it must be?
 It's a bug or what? I can make jira if it is so.

 -- Tony

 On Mon, Feb 9, 2009 at 11:57 PM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 Hello, all wicket users!

 I receive HTTP Status 500 error in this situation:

 I have a page with empty html-file and page's onRender() looks like:

OutputStreamWriter writer = null;
try {
  writer = new OutputStreamWriter(getResponse().getOutputStream(),
 encoding);
  String enc = getRequestCycle().getResponse().getCharacterEncoding();
  writer.append(!-- + enc + --\n);
  writer.append(.);
} catch (UnsupportedEncodingException ex) {
  throw new WicketRuntimeException(Invalid charset:  + 
 ex.getMessage());
} catch (IOException ex) {
  throw new WicketRuntimeException(IOException:  + ex.getMessage());
} finally {
  if (writer != null) {
try {
  writer.close();
} catch (IOException ex) {
}
  }
}


 The problem is when this first catch is reached (because encoding
 desired is sent as a parameter that could be errouneous) and

  new WicketRuntimeException(Invalid charset:  + ex.getMessage());

 is thrown I see HTTP Status 500 error with this:

 ERROR - WicketFilter   - closing the buffer error
 java.lang.IllegalStateException: getOutputStream() has already been
 called for this response
at 
 org.apache.catalina.connector.Response.getWriter(Response.java:610)
at 
 org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)
at 
 org.apache.wicket.protocol.http.WebResponse.write(WebResponse.java:365)
at 
 org.apache.wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:73)
at 
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:471)
at 
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)

 I would like to know is it proper to throw WicketRuntimeException in
 such situation.
 For example I want to show standart Wicket Error page.

 Thank you very much.

 -- Tony

 -
 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



 -
 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: static pages dynamic pages. How to have the same layout

2009-02-10 Thread Vika

Thank you for the responses. I am still struggling with this and could use
more help. Here is where i stand right now.

in Aplication.java  init()

mount(new URIRequestTargetUrlCodingStrategy(/docs)
{
@Override
public IRequestTarget decode(RequestParameters
requestParameters)
{
String path = /app/ + getURI(requestParameters);
return new PageRequestTarget(new StaticPage(new
WebExternalResourceRequestTarget(path)));
}
});

in StaicPage.java

public StaticPage(WebExternalResourceRequestTarget staticResource)
{
String staticResourceContent = ;
try {
staticResourceContent = 
  
convertStreamToString(staticResource.getResourceStream().getInputStream());
} catch (ResourceStreamNotFoundException e) 
{
// TODO Auto-generated catch block
e.printStackTrace();
}
add(new MultiLineLabel(staticContent, staticResourceContent));
}

---
Here is what i get in the browser when click on static link:

!DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
http://www.w3.org/TR/html4/loose.dtd;
html
head
meta http-equiv=Content-Type content=text/html; charset=UTF-8
titleInsert title here/title
/head
body
this is a test
/body
/html
This is in the footer 
--

What I would really want is to be able to extract some html tags from the
static page (title, body and meta) and  add them to my StaticPage 
separately rather then add raw html.

Any suggestions on how to do that ? 

thanks

Vicky



jWeekend wrote:
 
 Vicky,
 
 Take a look at  http://www.wicket-library.com/wicket-examples/staticpages/
 too.
 
 Regards - Cemal
  http://www.jWeekend.co.uk jWeekend 
 
 
 Vika wrote:
 
 
 kinabalu wrote:
 
  Can you elaborate  
 on your current architecture so we can let you know how Wicket can  
 achieve this?
 
 
 There are two categories pages on the site.
 1) dynamic content - jsp/servlet
 2) static content - html
 
 Both categories of pages only display the content. Navigation bar,
 header and footer are added  to both categories of pages using sitemesh
 (servlet filter).  So what should happen to the static html pages if i
 want to switch from using jsp/servlet to wicket ? Static content html
 pages are edited by someone who is not a programmer and  I would not want
 to put them together with java classes. It sounds like i could keep using
 sitemesh and it should still work. However is there a better way of doing
 it ?
 
 thanks
 
 Vicky
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/static-pages---dynamic--pages.-How-to-have-the-same-layout-tp21840098p21938889.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: Auto-Complete TextField for selecting multiple values

2009-02-10 Thread francisco treacy
i have used digitarald one in wicket hub.

example: http://wickethub.org/add  (try adding topics like
'javascript' or 'persistence')
code: 
http://code.google.com/p/wickethub/source/browse/#svn/trunk/wickethub/src/main/java/wickethub/web/components/autocompleter

i have not however wrapped it up in a pretty jar yet (and depending on
mootools, etc)

if not, you could take a look at this thread
http://www.nabble.com/AutoCompleteTextField---autocomplete-multiple-fields-td17500271.html

francisco


On Tue, Feb 10, 2009 at 5:48 PM, Ryan Gravener r...@ryangravener.com wrote:
 I'll implement the first one in due time.  It is not as fluid as i would
 hope though.


 http://ryangravener.com/flex | http://twitter.com/ryangravener


 On Tue, Feb 10, 2009 at 11:01 AM, Azzeddine Daddah 
 waarhei...@gmail.comwrote:

 Hi guys,

 Does somebody knows if there is already such a Wicket lib/component where
 you can select more then one value. Something like this one
 http://www.emposha.com/javascript/jquery/jquerymultiselect.html,
 http://digitarald.de/project/autocompleter/1-1/showcase/delicious-tags or
 http://remysharp.com/wp-content/uploads/2007/12/tagging.php


 Kind regards,

 Hbiloo



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



Re: Auto-Complete TextField for selecting multiple values

2009-02-10 Thread francisco treacy
ps: actually, once it's done, we should include it in wicket hub so
next time you can search for it there =)


On Tue, Feb 10, 2009 at 6:57 PM, francisco treacy
francisco.tre...@gmail.com wrote:
 i have used digitarald one in wicket hub.

 example: http://wickethub.org/add  (try adding topics like
 'javascript' or 'persistence')
 code: 
 http://code.google.com/p/wickethub/source/browse/#svn/trunk/wickethub/src/main/java/wickethub/web/components/autocompleter

 i have not however wrapped it up in a pretty jar yet (and depending on
 mootools, etc)

 if not, you could take a look at this thread
 http://www.nabble.com/AutoCompleteTextField---autocomplete-multiple-fields-td17500271.html

 francisco


 On Tue, Feb 10, 2009 at 5:48 PM, Ryan Gravener r...@ryangravener.com wrote:
 I'll implement the first one in due time.  It is not as fluid as i would
 hope though.


 http://ryangravener.com/flex | http://twitter.com/ryangravener


 On Tue, Feb 10, 2009 at 11:01 AM, Azzeddine Daddah 
 waarhei...@gmail.comwrote:

 Hi guys,

 Does somebody knows if there is already such a Wicket lib/component where
 you can select more then one value. Something like this one
 http://www.emposha.com/javascript/jquery/jquerymultiselect.html,
 http://digitarald.de/project/autocompleter/1-1/showcase/delicious-tags or
 http://remysharp.com/wp-content/uploads/2007/12/tagging.php


 Kind regards,

 Hbiloo




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



Problem with multiple AjaxLazyLoadPanel and DynamicImageResource

2009-02-10 Thread Sergio García

Well, i will try to explain the situation as good as i can. 

We have a grid with multiple AjaxLazyLoadPanel(ALLP) that load a query each
one. One of the ALLP is a ListView with an ALLP into each row (each row is a
different query). This enviroment works very well.

The problem comes with a ALLP with a Jfreechart image inside. When wicket
loads the image, i think it changes the state of the page from domready to
load, and this makes that the rest of the ALLP don't load properly. I fix
it making a new implementation of ALLP for that image. The new version
substitutes the call of
response.renderOnDomReadyJavascript(getCallbackScript().toString()); to a
new call of 
response.renderOnLoadJavascript(getCallbackScript().toString());. With the
new call the image loads at the end.

But i still have a problem. The rows do not load because they will load at
end and changing the javascript event from render to load does not fix
anything. 

Any ideas?
-- 
View this message in context: 
http://www.nabble.com/Problem-with-multiple-AjaxLazyLoadPanel-and-DynamicImageResource-tp21939285p21939285.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



Error building TinyMce

2009-02-10 Thread ashtek

I am trying to build TinyMCE and I get the following error - Has anyone seen
this error before?

D:\mystuff\ibtools\apache-wicket-1.3.5\tinymce-parent\tinymcemvn install
[INFO] Scanning for projects...
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] Error building POM (may not be this project's POM).


Project ID: unknown:tinymce

Reason: Parent: null:tinymce-parent:jar:null of project: unknown:tinymce has
wro
ng packaging: jar. Must be 'pom'. for project unknown:tinymce


[INFO]

[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Parent:
null:tinymce-parent:ja
r:null of project: unknown:tinymce has wrong packaging: jar. Must be 'pom'.
for
project unknown:tinymce
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
-- 
View this message in context: 
http://www.nabble.com/Error-building-TinyMce-tp21941674p21941674.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: How to handle this exception properly

2009-02-10 Thread Igor Vaynberg
the status code and the error page are orthogonal. you should still
see the standard error page, its just that it is returned with status
500.

-igor

On Tue, Feb 10, 2009 at 9:46 AM, Anton Veretennikov
anton.veretenni...@gmail.com wrote:
 How to get standart Error page then instead of this error?

 considering 5xx codes are server-related failures i would say it is correct.

 -igor

 On Tue, Feb 10, 2009 at 9:03 AM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 I get it.

 On Wed, Feb 11, 2009 at 12:01 AM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:
 do you get 500 or do you not?

 -igor

 On Tue, Feb 10, 2009 at 8:57 AM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 should be fine, you can throw any kind of runtime exception you want.

 -igor

 Igor, thank you for answer.

 Did you mean that HTTP Status 500 error I get is not what it must be?
 It's a bug or what? I can make jira if it is so.

 -- Tony

 On Mon, Feb 9, 2009 at 11:57 PM, Anton Veretennikov
 anton.veretenni...@gmail.com wrote:
 Hello, all wicket users!

 I receive HTTP Status 500 error in this situation:

 I have a page with empty html-file and page's onRender() looks like:

OutputStreamWriter writer = null;
try {
  writer = new OutputStreamWriter(getResponse().getOutputStream(),
 encoding);
  String enc = 
 getRequestCycle().getResponse().getCharacterEncoding();
  writer.append(!-- + enc + --\n);
  writer.append(.);
} catch (UnsupportedEncodingException ex) {
  throw new WicketRuntimeException(Invalid charset:  + 
 ex.getMessage());
} catch (IOException ex) {
  throw new WicketRuntimeException(IOException:  + 
 ex.getMessage());
} finally {
  if (writer != null) {
try {
  writer.close();
} catch (IOException ex) {
}
  }
}


 The problem is when this first catch is reached (because encoding
 desired is sent as a parameter that could be errouneous) and

  new WicketRuntimeException(Invalid charset:  + ex.getMessage());

 is thrown I see HTTP Status 500 error with this:

 ERROR - WicketFilter   - closing the buffer error
 java.lang.IllegalStateException: getOutputStream() has already been
 called for this response
at 
 org.apache.catalina.connector.Response.getWriter(Response.java:610)
at 
 org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)
at 
 org.apache.wicket.protocol.http.WebResponse.write(WebResponse.java:365)
at 
 org.apache.wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:73)
at 
 org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:471)
at 
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)

 I would like to know is it proper to throw WicketRuntimeException in
 such situation.
 For example I want to show standart Wicket Error page.

 Thank you very much.

 -- Tony

 -
 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



 -
 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: Auto-Complete TextField for selecting multiple values

2009-02-10 Thread Azzeddine Daddah
Hi guys,
Thanks for your replay. I'll also work on the 3th one and add it to the
Wicket hub when finished. The 3th one uses jQuery which is more popular and
you can easy combine/integrate it with WickeXt.

BTW, the new version of Wicket hub is fantastic and looks great :).

Best Regards,

Hbiloo


On Tue, Feb 10, 2009 at 6:59 PM, francisco treacy 
francisco.tre...@gmail.com wrote:

 ps: actually, once it's done, we should include it in wicket hub so
 next time you can search for it there =)


 On Tue, Feb 10, 2009 at 6:57 PM, francisco treacy
 francisco.tre...@gmail.com wrote:
  i have used digitarald one in wicket hub.
 
  example: http://wickethub.org/add  (try adding topics like
  'javascript' or 'persistence')
  code:
 http://code.google.com/p/wickethub/source/browse/#svn/trunk/wickethub/src/main/java/wickethub/web/components/autocompleter
 
  i have not however wrapped it up in a pretty jar yet (and depending on
  mootools, etc)
 
  if not, you could take a look at this thread
 
 http://www.nabble.com/AutoCompleteTextField---autocomplete-multiple-fields-td17500271.html
 
  francisco
 
 
  On Tue, Feb 10, 2009 at 5:48 PM, Ryan Gravener r...@ryangravener.com
 wrote:
  I'll implement the first one in due time.  It is not as fluid as i would
  hope though.
 
 
  http://ryangravener.com/flex | http://twitter.com/ryangravener
 
 
  On Tue, Feb 10, 2009 at 11:01 AM, Azzeddine Daddah 
 waarhei...@gmail.comwrote:
 
  Hi guys,
 
  Does somebody knows if there is already such a Wicket lib/component
 where
  you can select more then one value. Something like this one
  http://www.emposha.com/javascript/jquery/jquerymultiselect.html,
  http://digitarald.de/project/autocompleter/1-1/showcase/delicious-tagsor
  http://remysharp.com/wp-content/uploads/2007/12/tagging.php
 
 
  Kind regards,
 
  Hbiloo
 
 
 

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




Re: Invoulentary session sharing/leakage in Wicket 1.3.x

2009-02-10 Thread rima77

was this problem solved in Wicket 1.3.4? 
is there a jira issue associated with this problem?




Martin Makundi wrote:
 
 Ok. I meant the WicketServlet fix. Haven't seen the wicketFilter fix.
 
 **
 Martin
 
 2008/5/17 Johan Compagner jcompag...@gmail.com:
 It is not a workaround!
 The wicketfilter fix is a real fix for that situation. There is no
 root cause or real cause that i need to fix, at least not that i know
 of

 On 5/17/08, Martin Makundi martin.maku...@koodaripalvelut.com wrote:
 The workaround definitely catches some erroneous situations.
 Nevertheless, it is a workaround (does not solve the root problem).

 2008/5/17 Martijn Dashorst martijn.dasho...@gmail.com:
 I see a lot of folks recommending this, but nobody confirming this
 actually helps.

 Martijn

 On 5/17/08, Iman Rahmatizadeh iman.rahmatiza...@gmail.com wrote:
 Or just copy WicketFilter into your source, and fix it there, it'll
 override
  the default. Its a quick fix until the release comes out.

  Iman

  On Fri, May 16, 2008 at 10:25 AM, Johan Compagner
 jcompag...@gmail.com
  wrote:


   Or get the snapshot build from or wicketstuff maven repo
  
   On 5/16/08, Erik van Oosten e.vanoos...@grons.nl wrote:
Chris,
   
If you read the thread carefuly you can extract a quick fix.
 You'll
 need
it as the core developers argumented against a quick bugfix
 release.
Just checkout Wicket from SVN and apply the patch (2 lines in the
 Wicket
filter). Its a pain, but if you can not wait...
   
Regards,
Erik.
   
   
Chris Lintz wrote:
Guys has this been resolved??  We have been having some
 customers
   complain
as
well (some sending screen shots of others peoples data as
 proof).
Because
our users click streams are available publically at their
 control,
 we
   had
thought jsessionids occurring in the click stream were being
 maliciously
hijacked. We  plugged that hole disallowing any jsessionid to be
 part of
url
(via Servlet filter) - yes this of course means JavaScript must
 be
enabled.
This involuntary session sharing is still occurring.  We are
 running
release
1.3.2.
   
   
   
--
Erik van Oosten
http://day-to-day-stuff.blogspot.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
  
  



 --
 Buy Wicket in Action: http://manning.com/dashorst
 Apache Wicket 1.3.3 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3

 -
 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
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Invoulentary-session-sharing-leakage-in-Wicket-1.3.x-tp16550360p21943432.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: How to handle this exception properly

2009-02-10 Thread Marcelo Morales
On Tue, Feb 10, 2009 at 5:00 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 the status code and the error page are orthogonal. you should still
 see the standard error page, its just that it is returned with status
 500.
... with a proper browser (a cent)
-- 
Marcelo Morales

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



RE: Wizard seems to cache pages even on model change

2009-02-10 Thread rtow

The WizardStep has to keep the previous content...even though the underline
model has been updated...I think this may be the reason.  I end up with 2
textfields in the 2nd step, depends on the 1st step, either hide of show the
textfields.



rtow wrote:
 
 Do you find out what exactly is the problem and solution, I ran into the
 same problem.
 
 thanks in advance!
 rtow
 
 
 Dan Kaplan-3 wrote:
 
 The most important part of this is probably HOW I update the model.  I am
 using AJAX.
 
 -Original Message-
 From: Dan Kaplan [mailto:dkap...@citizenhawk.com] 
 Sent: Tuesday, April 01, 2008 11:07 AM
 To: users@wicket.apache.org
 Subject: Wizard seems to cache pages even on model change
 
 Hello,
 
 Here is my scenario.  I have a 2 page Wizard.  The first page asks you to
 type in the primary key of a table.  If that row already exists in the
 table, the second page gets loaded with the rest of that row's data.  So,
 in
 summary, the first page of the wizard should be able to populate the
 second
 page.  
 
 But here's my problem: The first page only populates the 2nd page if I
 haven't visited the second page yet.  If, on the second page, I click the
 previous button and then pick a new primary key, when I visit the 2nd
 page
 again, the input fields are not updated.  I've used the debugger to see
 that
 the Model Object *is* being updated.
 
 I can't figure out why this is happening.  I only use PropertyModels
 (those
 are dynamic models, right?).  I can only guess that the Wizard serializes
 the steps you've visited and doesn't check if the model has changed when
 you
 go back to them.
 
 One last thing that may be revealing: One of the things that second page
 displays is a listview of fields.  If the second primary key I pick has
 more
 items in the list than the first one, the extra items do get populated on
 the page.  IE: First pk has 3 items.  Second pk has 4 items.  The second
 page will have the correct 4th item in the list but the first 3 will be
 of
 the first pk.
 
 Here is my code in a pastebin: http://pastebin.org/26606
 
 Here is my code inlined into the email:
 
 package com.haverlocke.tellah.web.component;
 
 import com.haverlocke.tellah.model.dao.WebsiteDao;
 import com.haverlocke.tellah.model.dao.WebsiteHistoryDao;
 import com.haverlocke.tellah.model.dto.LinkDto;
 import com.haverlocke.tellah.model.dto.WebsiteDto;
 import com.haverlocke.tellah.web.model.TellahUrlValidator;
 import com.haverlocke.tellah.web.page.HomePage;
 import com.haverlocke.tellah.web.util.SimilarWebsiteUtil;
 import com.haverlocke.tellah.web.component.recaptcha.ReCaptchaPanel;
 import net.databinder.components.AjaxOnKeyPausedUpdater;
 import org.apache.wicket.ajax.AjaxRequestTarget;
 import org.apache.wicket.ajax.markup.html.form.AjaxButton;
 import org.apache.wicket.behavior.HeaderContributor;
 import org.apache.wicket.extensions.wizard.Wizard;
 import org.apache.wicket.extensions.wizard.WizardModel;
 import org.apache.wicket.extensions.wizard.WizardStep;
 import org.apache.wicket.feedback.FeedbackMessage;
 import org.apache.wicket.feedback.IFeedbackMessageFilter;
 import org.apache.wicket.markup.html.basic.Label;
 import org.apache.wicket.markup.html.form.Form;
 import org.apache.wicket.markup.html.form.TextArea;
 import org.apache.wicket.markup.html.form.TextField;
 import org.apache.wicket.markup.html.panel.FeedbackPanel;
 import org.apache.wicket.model.PropertyModel;
 import org.apache.wicket.model.IModel;
 import org.apache.wicket.spring.injection.annot.SpringBean;
 import org.apache.wicket.PageParameters;
 import org.apache.wicket.Component;
 
 import java.util.List;
 
 /**
  * @author Daniel Kaplan
  * @since 7.10.5
  */
 public class SubmitWizard extends Wizard {
 
 private static final String PUBLIC_DEV = fake;
 private static final String PRIVATE_DEV = fake;
 
 @SpringBean
 private WebsiteDao websiteDao;
 
 @SpringBean
 private WebsiteHistoryDao websiteHistoryDao;
 
 private WebsiteDto websiteDto = new WebsiteDto();
 private Label note;
 private String noteString;
 private boolean insert;
 
 public SubmitWizard(String id, PageParameters pp) {
 super(id, false);
 
 insert = pp.getString(websiteName) == null ||
 .equals(pp.getString(websiteName));
 
 WizardModel model = new WizardModel();
 model.add(new WebsiteName());
 
 WebsiteDetails websiteDetails = new WebsiteDetails();
 model.add(websiteDetails);
 
 init(model);
 
 websiteDetails.addReCaptchaPanel();
 
 initPage(pp.getString(websiteName));
 }
 
 @Override
 public void onFinish() {
 new WizardFinishedAction(new PropertyModel(this, websiteDto),
 getPage()).onSubmit();
 }
 
 @Override
 public void onCancel() {
 setRedirect(true);
 setResponsePage(HomePage.class);
 }
 
 @Override
 protected FeedbackPanel newFeedbackPanel(String id) {
 return new FeedbackPanel(id, new 

Re: Error building TinyMce

2009-02-10 Thread Łukasz Lipka
Hi Ashtek,
I think just try first
D:\mystuff\ibtools\apache-wicket-1.3.5\tinymce-parent\ mvn install
and than D:\mystuff\ibtools\apache-wicket-1.3.5\tinymce-parent\tinymcemvn
install
I hope this help.

Best regards,
-- 
Pozdrowienia
Łukasz Lipka
http://lukaszlipka.blogspot.com/

2009/2/10 ashtek ashok_tek...@yahoo.com:

 I am trying to build TinyMCE and I get the following error - Has anyone seen
 this error before?

 D:\mystuff\ibtools\apache-wicket-1.3.5\tinymce-parent\tinymcemvn install
 [INFO] Scanning for projects...
 [INFO]
 
 [ERROR] FATAL ERROR
 [INFO]
 
 [INFO] Error building POM (may not be this project's POM).


 Project ID: unknown:tinymce

 Reason: Parent: null:tinymce-parent:jar:null of project: unknown:tinymce has
 wro
 ng packaging: jar. Must be 'pom'. for project unknown:tinymce


 [INFO]
 
 [INFO] Trace
 org.apache.maven.reactor.MavenExecutionException: Parent:
 null:tinymce-parent:ja
 r:null of project: unknown:tinymce has wrong packaging: jar. Must be 'pom'.
 for
 project unknown:tinymce
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 --
 View this message in context: 
 http://www.nabble.com/Error-building-TinyMce-tp21941674p21941674.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: AjaxSubmitLink submitting twice

2009-02-10 Thread Matt Welch

The Nabble posting process correctly escaped all of the HTML tags except the  
which it rendered as HTML. I only just now figured out I needed to use a
raw tag. The raw HTML is below.

As expected though, this same code works fine in a quickstart. I never
suspected that it was a bug, which is why I didn't post a JIRA issue. I knew
something this simple wouldn't have been missed. It's clearly a problem with
our configuration, but I don't know where to start looking. 

Using this simple test page, the final rendered page contains no extra
javascript beyond the wicket stuff to support the button submission which I
know works. This test page isn't going through our security framework
because I extended WebPage instead of our application's SecureWebPage (using
wicket-security). That leaves servlet filters (Spring's OpenSessionInView
and the normal WicketFilter), our session implementation or the
WebApplication itself. 

Does anyone have any suggestions about where I might plop down a breakpoint
in an attempt to debug this issue?

-Matt


!DOCTYPE html
PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
body
form action=# wicket:id=testForm
input wicket:id=keyword type=text /
 # Search 
/form
/body
/html






igor.vaynberg wrote:
 
 your example markup does not contain search component. it is much
 better to open a jira issue and attach a quickstart that reproduces
 the problem.
 
 -igor
 
 On Tue, Feb 10, 2009 at 6:12 AM, Matt Welch matt...@welchkin.net wrote:

 I'm stumped. We have an AjaxSubmitLink and when clicked, the onSubmit of
 the
 link is being executed twice. This is causing havok in our app. I've
 winnowed it down to just the simplest example but I still see this taking
 place. I'm not sure how to proceed. Here's the example code:
 -
 !DOCTYPE html
PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
 body
form action=# wicket:id=testForm
input wicket:id=keyword type=text /
 # Search
/form
 /body
 /html
 -
 public class TestAjaxSubmitLink extends WebPage {
private String fieldValue;

public TestAjaxSubmitLink() {

Form form = new Form(testForm);
add(form);
final TextField search = new TextField(keyword, new
 PropertyModel(this,
 fieldValue));

form.add(search);
form.add(new AjaxSubmitLink(search){
protected void onSubmit(AjaxRequestTarget target,
 Form form) {
System.out.println(Clicked Submit);
}
});
}
 }
 -

 We're using an older version of Wicket, but I tested this in 1.3.5 also
 and
 got the same behavior. I find it hard to believe that we would be the
 first
 to experience this behavior so I assume we're doing something wrong, but
 I'm
 just not sure what it is. Any advice?

 -Matt
 --
 View this message in context:
 http://www.nabble.com/AjaxSubmitLink-submitting-twice-tp21934491p21934491.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
 
 
 

-- 
View this message in context: 
http://www.nabble.com/AjaxSubmitLink-submitting-twice-tp21934491p21944134.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: Wicket stuff core, archetypes?

2009-02-10 Thread francisco treacy
additionally, i think we need to decompose our problem. i see our aims
like this:

1. maintaining an updated registry
   a) keep reference to components and regularly ping/update data
(wicket hub should be able to do this real soon)
   b) automatically discover those components (a whole new story)
2. deploying/running live examples (a whole new story)

let's start with small steps. let's attack (1.a) first.

in terms of mapping current code with wicket-components.xml, what we have is:

private String title;  component OK
private String description;   description OK
private Date lastUpdated;   we grab the timestamp of the
wicket-components.xml file or the jar itself
private String author;  publisher OK

private String topics;   ... search-keywords=slider,ui,java  OK
private String versions;  if we use maven notation for
dependencies, we should be able to easily detect wicket version
used...

private String websiteUrl;   ...
site=http://mycomponents.com/slider; .. OK
private String examplesUrl;  somewhere in resources /
demo class=com.mycomponents.demo.DemoPanel/ , we'll need to obtain
a url where that example is deployed - this is aim #2 and we should
leave it for later

private License license;  make best match of license name=..

we could start with a version 0.1 of wicket-components.xml, make some
experiments with two or three test jars, and see how it goes.

francisco


On Tue, Feb 10, 2009 at 11:17 PM, francisco treacy
francisco.tre...@gmail.com wrote:
 i completely agree with you in that Wicket component jars should be
 fully self-describing, so i think wicket meta information has to be
 independent of any external technology such as maven or osgi.

 however the only practical way nowadays to universally identify a
 component is using its maven coordinates.

 so, to get started, we could just impose specifying deps in
 wicket-components.xml as this (typical maven pom snippet):

 dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket/artifactId
version1.4/version
 /dependency

 note that this doesn't restrain you from publishing your non-mavenized
 jar. you will only have to manually set them in that case (assuming
 some day we create a maven post-install to generate
 wicket-components.xml for mavenized ones).

 also, the sources and the example jar should be pointing to external
 resources. for instance in wicketstuff  examples are not packaged with
 the main component.

 francisco



 On Mon, Feb 9, 2009 at 4:06 PM, Jonathan Locke jonathan.lo...@gmail.com 
 wrote:


 using the maven deps is fine.  the purpose i had in mind for the
 requirements and libraries nodes was just to enable display of the
 component's requirements on a page about the component... (whether it's
 built with maven or not).  but using the maven deps would be more detailed
 and more consistent... and most wicket components will be mavenized.


 francisco treacy-2 wrote:

 coincidentally, i started working on that again and i was about to
 contact you to suggest a draft.

 my perspective are (for the moment) data that is to be mapped to
 fields currently supported in wicket hub. i put it in a jar metadata
 format.

 Site-URL: (maps to website url)
 License-Name: (maps to license)
 Wicket-Versions: (maps to supported wicket versions)
 Search-Keywords: (maps to topics)
 Publish-Date: (maps to latest publish date)
 Author: (maps to author)

 i uploaded a new version that has a minimal infrastructure (a running
 batch) to support pinging known components. basically it's yet to be
 put together (the download, unzip, parse metadata), but it's all
 there.

 regarding your metadata proposal, i think it's really fine. also, the
 xml format makes sense. however i'm not 100% convinced about

 requirements
   library name=wicket version=1.3/
   library name=YUI version=4.0/
 /requirements

 ... cause it's duplicating maven functionality, and i'm  pretty sure
 maven handles it better. i know that our components are not
 necessarily mavenized, but even then we should pay particular
 attention to this one.

 as i said, i'm ready to get this done on my side - it would be nice if
 somebody else could work on a maven plugin or other post-install step
 to generate this metadata within jars.

 francisco

 --
 http://wickethub.org

 On Mon, Feb 9, 2009 at 9:45 AM, Jonathan Locke jonathan.lo...@gmail.com
 wrote:


 couldn't sleep tonight, so i did a bit of work on it...

 http://cwiki.apache.org/confluence/display/WICKET/Wicket+Component+JAR+Metadata

 just a quick first sketch. thoughts?


 Jonathan Locke wrote:


 i don't have time to develop the metadata standard, but i could make
 time
 to review it. there are a few good things on that wiki page, but i'd say
 a
 bit more thinking could be applied (anyone want to help francisco?) and
 then get review from me and any other core devs who want to chime in. if
 wicket-user/wicket-dev 

Re: Error building TinyMce

2009-02-10 Thread ashtek

Thanks Lukasz.

I tried what you suggest and I still got the same error.

D:\mystuff\ibtools\apache-wicket-1.3.5\tinymce-parentmvn install
[INFO] Scanning for projects...
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] Error building POM (may not be this project's POM).


Project ID: unknown:tinymce-parent

Reason: Parent: org.wicketstuff:wicket-contrib-tinymce:jar:1.3-SNAPSHOT of
proje
ct: unknown:tinymce-parent has wrong packaging: jar. Must be 'pom'. for
project
unknown:tinymce-parent


[INFO]

[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Parent:
org.wicketstuff:wicket







-- 
View this message in context: 
http://www.nabble.com/Error-building-TinyMce-tp21941674p21944690.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: Graphs, Charts and Wicket

2009-02-10 Thread Thies Edeling
Works nicely but how to initialize the chart when the panel is loaded
through an ajax req/res ? Is there a javascript method that writes out the
Flash object tag ? That seems to be completely missing.

On Mon, Feb 2, 2009 at 10:28 AM, Maarten Bosteels
mbosteels@gmail.comwrote:

 Also have a look at
 http://cwiki.apache.org/WICKET/open-flash-chart-and-wicket.html

 Maarten

 On Thu, Jan 29, 2009 at 2:45 PM, newbieabc newbie...@yahoo.com wrote:

 
  If you don't mind, could you post your code to display the chart you
 used?
  I was interested the gradient fill chart they offered, but am really new
 to
  wicket and didn't understand how to add it in wicket.
 
  Thanks!
 
 
  Jurek Piasek wrote:
  
   I have been using Amcharts
  
   http://www.amcharts.com/
  
   together with SWFObject
  
 
 http://cwiki.apache.org/WICKET/creating-a-behavior-to-use-a-javascript-library.html
  
   Regards,
   Jurek
  
  
   On Sun, Nov 16, 2008 at 8:20 PM, Yazbek, Daniel (Daniel)
   dyaz...@avaya.comwrote:
  
   Hi all,
  
  
  
   I'd like to put some simple bar graphs, pie graphs and possible line
   graphs into my wicket pages.
  
  
  
   Have any of you used a good framework that you can recommend, that
 also
   plays nicely with Wicket?
  
  
  
   Thanks!
  
  
  
   -Daniel.
  
  
  
  
  
  
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/Graphs%2C-Charts-and-Wicket-tp20532374p21727142.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: Wicket Jiras, Wednesday 11 Feb, @ jWeekend

2009-02-10 Thread jWeekend

Igor,

OK, I'll let Al put us on the right track with issue selection.
At tomorrow evening's session it looks like there'll be 6 crack developers
and me.

Regards - Cemal
http://jWeekend.co.uk jWeekend 


igor.vaynberg wrote:
 
 feel free to work on any open bug, even if it has been assigned to
 someone (as long as it is not in progress)
 
 -igor
 
 On Thu, Feb 5, 2009 at 1:39 AM, jWeekend jweekend_for...@cabouge.com
 wrote:

 Let me know if you'd like to join us on Wednesday evening, at jWeekend's
 office in London, for our inaugural session designed to go over selected
 Wicket Jira issues (1.4 fixes to start with).

 The idea is to dig into how things work with Al and I, understand the
 problems, work out how things hang together (or should hang together) and
 come up with working/tested solutions and patches we can submit to be
 considered for inclusion in trunk.

 We have plenty of desks, whiteboards and can even provide you with a
 laptop
 for the evening if you don't want to carry your own around or use your
 work
 laptop.

 It looks like we already have 5 or 6 people quite keen to join in from
 our
 London Wicket Event last night, so I should be able to tell you exactly
 how
 things will work once I know for sure who's coming. We'll most likely
 look
 to run this as a regular thing, once every week or two.

 Regards - Cemal
 http://www.jWeekend.co.uk jWeekend

 PS To those of you who said you'd really like to get involved but may be
 on
 overnight support on Wednesday - we have a 24Mbs connection and may
 even
 be able to help you fix any issues that crop up in your production
 systems
 while you're here ;-)




 --
 View this message in context:
 http://www.nabble.com/Wicket-Jiras%2C-Wednesday-11-Feb%2C-%40-jWeekend-tp21847882p21847882.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
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Wicket-Jiras%2C-Wednesday-11-Feb%2C-%40-jWeekend-tp21847882p21944905.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: Error building TinyMce

2009-02-10 Thread Łukasz Lipka
funny I had the same problem with Mule and source code, and I think
there is missing wicketstuff jar, just try to download all wicketstuff
and build it, I am using the newest tinymc with wicket-1.4, and I am
able to build jars without problems.

Best regards,
-- 
Pozdrowienia
Łukasz Lipka
http://lukaszlipka.blogspot.com/
2009/2/10 ashtek ashok_tek...@yahoo.com:

 Thanks Lukasz.

 I tried what you suggest and I still got the same error.

 D:\mystuff\ibtools\apache-wicket-1.3.5\tinymce-parentmvn install
 [INFO] Scanning for projects...
 [INFO]
 
 [ERROR] FATAL ERROR
 [INFO]
 
 [INFO] Error building POM (may not be this project's POM).


 Project ID: unknown:tinymce-parent

 Reason: Parent: org.wicketstuff:wicket-contrib-tinymce:jar:1.3-SNAPSHOT of
 proje
 ct: unknown:tinymce-parent has wrong packaging: jar. Must be 'pom'. for
 project
 unknown:tinymce-parent


 [INFO]
 
 [INFO] Trace
 org.apache.maven.reactor.MavenExecutionException: Parent:
 org.wicketstuff:wicket







 --
 View this message in context: 
 http://www.nabble.com/Error-building-TinyMce-tp21941674p21944690.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: AjaxSubmitLink submitting twice

2009-02-10 Thread Igor Vaynberg
just add Thread.dumpStack() to the onsubmit() and see the two places
its being called from. you can also add something like
System.out.println(getrequestcycle().getrequest()) to see if the same
request is initiating both calls.


-igor

On Tue, Feb 10, 2009 at 2:35 PM, Matt Welch matt...@welchkin.net wrote:

 The Nabble posting process correctly escaped all of the HTML tags except the
 which it rendered as HTML. I only just now figured out I needed to use a
 raw tag. The raw HTML is below.

 As expected though, this same code works fine in a quickstart. I never
 suspected that it was a bug, which is why I didn't post a JIRA issue. I knew
 something this simple wouldn't have been missed. It's clearly a problem with
 our configuration, but I don't know where to start looking.

 Using this simple test page, the final rendered page contains no extra
 javascript beyond the wicket stuff to support the button submission which I
 know works. This test page isn't going through our security framework
 because I extended WebPage instead of our application's SecureWebPage (using
 wicket-security). That leaves servlet filters (Spring's OpenSessionInView
 and the normal WicketFilter), our session implementation or the
 WebApplication itself.

 Does anyone have any suggestions about where I might plop down a breakpoint
 in an attempt to debug this issue?

 -Matt


 !DOCTYPE html
PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
 body
form action=# wicket:id=testForm
input wicket:id=keyword type=text /
 # Search
/form
 /body
 /html






 igor.vaynberg wrote:

 your example markup does not contain search component. it is much
 better to open a jira issue and attach a quickstart that reproduces
 the problem.

 -igor

 On Tue, Feb 10, 2009 at 6:12 AM, Matt Welch matt...@welchkin.net wrote:

 I'm stumped. We have an AjaxSubmitLink and when clicked, the onSubmit of
 the
 link is being executed twice. This is causing havok in our app. I've
 winnowed it down to just the simplest example but I still see this taking
 place. I'm not sure how to proceed. Here's the example code:
 -
 !DOCTYPE html
PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
 body
form action=# wicket:id=testForm
input wicket:id=keyword type=text /
 # Search
/form
 /body
 /html
 -
 public class TestAjaxSubmitLink extends WebPage {
private String fieldValue;

public TestAjaxSubmitLink() {

Form form = new Form(testForm);
add(form);
final TextField search = new TextField(keyword, new
 PropertyModel(this,
 fieldValue));

form.add(search);
form.add(new AjaxSubmitLink(search){
protected void onSubmit(AjaxRequestTarget target,
 Form form) {
System.out.println(Clicked Submit);
}
});
}
 }
 -

 We're using an older version of Wicket, but I tested this in 1.3.5 also
 and
 got the same behavior. I find it hard to believe that we would be the
 first
 to experience this behavior so I assume we're doing something wrong, but
 I'm
 just not sure what it is. Any advice?

 -Matt
 --
 View this message in context:
 http://www.nabble.com/AjaxSubmitLink-submitting-twice-tp21934491p21934491.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




 --
 View this message in context: 
 http://www.nabble.com/AjaxSubmitLink-submitting-twice-tp21934491p21944134.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: Error building TinyMce

2009-02-10 Thread ashtek

I have been struggling with the last couple of days, and I am not sure if it
because I am using the 1.3 snapshot

In any case, you just do a svn checkout and then an mvn install, right? No
editing files after the checkout?

Can you also give me the checkout URL you used? The one listed on
Wicketstuff wiki does not seem to work.



-- 
View this message in context: 
http://www.nabble.com/Error-building-TinyMce-tp21941674p21945694.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: Error building TinyMce

2009-02-10 Thread ashtek

I have been struggling with the last couple of days, and I am not sure if it
because I am using the 1.3 snapshot

In any case, you just do a svn checkout and then an mvn install, right? No
editing files after the checkout?

Can you also give me the checkout URL you used? The one listed on
Wicketstuff wiki does not seem to work.



-- 
View this message in context: 
http://www.nabble.com/Error-building-TinyMce-tp21941674p21945755.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



Page composition question

2009-02-10 Thread uwe janner
dear wicketeers,

i'm facing a problem with page composition where i cant find an elegant
solution; i hope i can explain it comprehensible:

i have a panel named CustomerInfo.

there are 5 types of customers in the application.

most of the CustomerInfo.html is the same for all types of customers -
except three div's:
DetailInfo, SpecialInfo and AdditionalInfo

these two div's contain different html and different components for each
type of customer;

one way would be to create 15 different panels (DetailInfoCustomerType1,
DetailInfoCustomerType2, DetailInfoCustomerType3, ,
SpecialInfoCustomerType1, .)
then, in CustomerInfo-panel i would include the right 3 panels depending on
the customer type, e.g. (DetailInfoCustomerType1, SpecialInfoCustomerType1,
AdditionalInfoCustomerType1);

ok, its no good idea to have 15 separate panels, i want to group the 3
html-snippets together (Detail, Special, Additional)

how can i achieve this? as i understood, neither panels, nor fragments nor
borders can be used for this.
how could a parent container ( CustomerInfo ) fill 3 different areas (the
3 div's) with 3 different fragments of a child (e.g.
DetailInfoCustomerType2, SpecialInfoCustomerType2,
AdditionalInfoCustomerType2)?

if the 3 different areas were contiguous/adjacent i could use simple page
inheritance, bc then the parent container pulls out the whole child's
content with wicket:child/ .

in my case i needed sth like wicket:child id=detailInfo/ .much
html/...wicket:child id=specialInfo/ .much
html/...wicket:child id=additionalInfo/ .
where with wicket:child id=xxx/ the parent would only include the part
of the child with wicket:id xxx

thxinadvance,uwe!


Inconsistent Model Binding on Form Submit

2009-02-10 Thread Dane Laverty
I have a test form based on a CompoundPropertyModel. Usually it works
great, but for some users, their answers are lost when they submit the
form. The problem is user-dependent, i.e. it always breaks for certain
users and it never breaks for the other users. If a user calls us with
this problem, we haven't been able to find anyway to get around it. I
haven't been able to replicate the problem on my computer. I posted
about this a few months ago, thinking it was a session problem, but now
I see that the problem happens right when the test is submitted. This is
with Wicket 1.3.4. Any ideas what would cause the model to lose the
information for certain users?

 

public class TestPage

{

 

public TestPage() {

add(new TestForm(testForm, new
CompoundPropertyModel(getSession().getUser().getTest(;

}

  

public TestForm(final String id, CompoundPropertyModel testModel) {

super(id, testModel);

  

add(new ListView(questions) {



  @Override

  public boolean getReuseItems() {

return true;

  }

 

  protected void populateItem(ListItem item) {

 

final Question question = (Question)
item.getModelObject();

  

FoodHandlerRadioChoice answersRadioChoice = new
FoodHandlerRadioChoice(answers, 

  new
PropertyModel(question, markedAnswer), 

 
question.getAnswers());

answersRadioChoice.setRequired(true);


item.add(answersRadioChoice);   

   

}   

});

  }



  protected void onSubmit() {

// The following should return an object. Usually it does,
but sometimes

// it just returns null. Oh why, oh why? 

 
getSession().getUser().getTest().getQuestions().get(0).getMarkedAnswer()
;

setResponsePage(TestResultsPage.class);

  }

} 





RE: Inconsistent Model Binding on Form Submit

2009-02-10 Thread Dane Laverty
I apologize for the awful code formatting. Is there a way to maintain
readable formatting when I post code to this mail list?

-Original Message-
From: Dane Laverty [mailto:danelave...@chemeketa.edu] 
Sent: Tuesday, February 10, 2009 4:56 PM
To: users@wicket.apache.org
Subject: Inconsistent Model Binding on Form Submit

I have a test form based on a CompoundPropertyModel. Usually it works
great, but for some users, their answers are lost when they submit the
form. The problem is user-dependent, i.e. it always breaks for certain
users and it never breaks for the other users. If a user calls us with
this problem, we haven't been able to find anyway to get around it. I
haven't been able to replicate the problem on my computer. I posted
about this a few months ago, thinking it was a session problem, but now
I see that the problem happens right when the test is submitted. This is
with Wicket 1.3.4. Any ideas what would cause the model to lose the
information for certain users?

 

public class TestPage

{

 

public TestPage() {

add(new TestForm(testForm, new
CompoundPropertyModel(getSession().getUser().getTest(;

}

  

public TestForm(final String id, CompoundPropertyModel testModel) {

super(id, testModel);

  

add(new ListView(questions) {



  @Override

  public boolean getReuseItems() {

return true;

  }

 

  protected void populateItem(ListItem item) {

 

final Question question = (Question)
item.getModelObject();

  

FoodHandlerRadioChoice answersRadioChoice = new
FoodHandlerRadioChoice(answers, 

  new
PropertyModel(question, markedAnswer), 

 
question.getAnswers());

answersRadioChoice.setRequired(true);


item.add(answersRadioChoice);   

   

}   

});

  }



  protected void onSubmit() {

// The following should return an object. Usually it does,
but sometimes

// it just returns null. Oh why, oh why? 

 
getSession().getUser().getTest().getQuestions().get(0).getMarkedAnswer()
;

setResponsePage(TestResultsPage.class);

  }

} 




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



Re: Page composition question

2009-02-10 Thread Igor Vaynberg
class abstract parentpanel extends panel {
  private panel panel1, panel2, panel3;

  protected abstract panel newpanel1(string id, imodel model);
  protected abstract panel newpanel2(string id, imodel model);
  protected abstract panel newpanel3(string id, imodel model);

  protected void onbeforerender() {
if (panel1==null) {
  add(panel1=newpanel1(p1, getdefaultmodel());
  add(panel2=newpanel1(p2, getdefaultmodel());
  add(panel3=newpanel1(p3, getdefaultmodel());
   }
  super.onbeforerender();
   }
}

-igor

On Tue, Feb 10, 2009 at 4:46 PM, uwe janner ujan...@googlemail.com wrote:
 dear wicketeers,

 i'm facing a problem with page composition where i cant find an elegant
 solution; i hope i can explain it comprehensible:

 i have a panel named CustomerInfo.

 there are 5 types of customers in the application.

 most of the CustomerInfo.html is the same for all types of customers -
 except three div's:
 DetailInfo, SpecialInfo and AdditionalInfo

 these two div's contain different html and different components for each
 type of customer;

 one way would be to create 15 different panels (DetailInfoCustomerType1,
 DetailInfoCustomerType2, DetailInfoCustomerType3, ,
 SpecialInfoCustomerType1, .)
 then, in CustomerInfo-panel i would include the right 3 panels depending on
 the customer type, e.g. (DetailInfoCustomerType1, SpecialInfoCustomerType1,
 AdditionalInfoCustomerType1);

 ok, its no good idea to have 15 separate panels, i want to group the 3
 html-snippets together (Detail, Special, Additional)

 how can i achieve this? as i understood, neither panels, nor fragments nor
 borders can be used for this.
 how could a parent container ( CustomerInfo ) fill 3 different areas (the
 3 div's) with 3 different fragments of a child (e.g.
 DetailInfoCustomerType2, SpecialInfoCustomerType2,
 AdditionalInfoCustomerType2)?

 if the 3 different areas were contiguous/adjacent i could use simple page
 inheritance, bc then the parent container pulls out the whole child's
 content with wicket:child/ .

 in my case i needed sth like wicket:child id=detailInfo/ .much
 html/...wicket:child id=specialInfo/ .much
 html/...wicket:child id=additionalInfo/ .
 where with wicket:child id=xxx/ the parent would only include the part
 of the child with wicket:id xxx

 thxinadvance,uwe!


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



Re: setting the value of a radio input field

2009-02-10 Thread Story Henry

Thanks for the tip Thomas! I have it now.

I am really keen to avoid state on the servers, as a design principle.  
It forces me to think the web way as much as possible, and when one  
does, possibilities start becoming evident. So no I did not do any  
measurements there. But these principles are also what brought be to  
Wicket. I like the separation of html and logic. I think more needs to  
be done perhaps to make stateless programming as easy, or easier than  
stateful programming, but I won't pass judgement until I have used  
Wicket more, and feel like I understand it properly.


In this case I think it also makes for nice URLs.

I am using Wicket 1.4rc2 btw.

So here is the code that works. I even deployed it at

http://test.foafssl.org/cert/

The following html http://bit.ly/wFLi and the following Java: 
http://bit.ly/p735F

Give the following html

 form method=GET action=
   input type=submit name=Select /

   span wicket:id=person
   p
   input wicket:id=radio type=radio value=http://axel.deri.ie/~axepol/foaf.rdf#me 
 id=webid1-radio2 name=webid/

   table
   trtdName/tdtd wicket:id=nameAxel Polleres/ 
td/tr
   trtdURI/tdtd wicket:id=urihttp://axel.deri.ie/~axepol/foaf.rdf#me 
/td/tr

   /table
   /p
   /span


On 10 Feb 2009, at 17:29, Thomas Mäder wrote:


The approach with

Component radio= new Radio(radio, ...);

is the right one. You can still try to add the AttributeModifier, but
probably, you'll end up fighting the Radio implementation (perhaps  
you'll

have to create a subclass?)
However, I don't see why you don't just use the regular wicket  
approach? Did
you actually measure that there is more load on the server? I highly  
doubt

it.

Thomas

On Tue, Feb 10, 2009 at 4:35 PM, Story Henry  
henry.st...@bblfish.netwrote:



Hi,

I have been looking at how to set the value of a radio input field  
to a

value of my choosing.
If I use the Radio and Radio Group code as shown here:
http://pastebin.com/m40b9b073
I get html such as

input wicket:id=radio type=radio value=radio2
name=selectionGroup/
input wicket:id=radio type=radio value=radio3
name=selectionGroup/
...

whereas I was hoping to get

input wicket:id=radio type=radio value=
http://bblfish.net/people/henry/card#me; name=selectionGroup/

Searching the web I found the thread Setting a relevant value for  
radio

buttons without using RadioChoice from December 2008 (
http://tinyurl.com/cpfj49 ) I came to understand that RadioGroup  
saves all
the mapping itself. I would rather it did not, reducing the load on  
the
server, as I am using URLs as primary keys. This more RESTful and I  
think

clearner.

So if I cannot set this using the Radio component I thought perhaps  
I can

use an AttributeModifier with code like the following:

class ChoiceForm extends Form {

 ChoiceForm(String string, ListAgent agents) {
super(string);
ListView persons;
add(persons=new ListView(person, agents) {

   @Override
   protected void populateItem(ListItem item) {
  Agent agt = (Agent) item.getModelObject();
  Component radio = item.get(radio); //this is wrong!  
looking

for solution
   radio.add(new AttributeModifier(value,new
Model(agt.getWebID().toString(;
  item.add(new Label(name, agt.getName()));
  item.add(new Label(uri, agt.getWebID().toString()));
   }
});
persons.setReuseItems(true);
 }
}

I am not sure how one can get a component in the populateItem  
function so

that one can then
change the attribute for it.

The html I am trying to work with is this:

form wicket:id=select
input type=submit name=Select/
span wicket:id=selectionGroup
span wicket:id=person
  p
  input wicket:id=radio type=radio value=
http://bblfish.net/people/henry/card#me/
  table
trtdName/tdtd wicket:id=nameHenry Story/td/tr
trtdURI/tdtd wicket:id=uri
http://bblfish.net/people/henry/card#me/td/tr
  /table
  /p
/span
/span
input type=submit name=Select/
/form

Any suggestions as to where I should look for more information. I  
have
searched all over the internet and Wicket In Action, but without  
success.


  Henry Story

Blog: http://blogs.sun.com/bblfish


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





--
Thomas Mäder
Wicket  Eclipse Consulting
www.devotek-it.ch



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



Re: Problem with WebRequestCodingStrategy's and mobile phones

2009-02-10 Thread Timo Rantalaiho
On Mon, 09 Feb 2009, Jeremy Levy wrote:
 We tested this on several other handsets that we have available and can
 confirm that it breaks all form submits.
 
 This is a some what obsecure case, and perhaps irrelvant if you don't run a
 mobile site, but we saw our number's drop by about 20% - 50% until we
 figured this out.
 
 Hope this helps someone else.

Thanks for sharing this! Care to put a note on the wiki
(even just copy-paste your mail)?

Best wishes,
Timo

-- 
Timo Rantalaiho   
Reaktor Innovations OyURL: http://www.ri.fi/ 

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



Re: Three tier layered application using Wicket + Spring + Hibernate. How would you handle transactions?

2009-02-10 Thread Timo Rantalaiho
On Tue, 10 Feb 2009, Kent Larsson wrote:
 I'm thinking about using the **Open Session In View (OSIV)** filter or
 interceptor that comes with Spring, as it seems like a convenient way
 for me as a developer. If that's what you recommend, do you recommend
 using a filter or an interceptor and why?

What do you mean with an interceptor? If it's Spring-MVC 
specific, it cannot be used with Wicket. A Wicket equivalent 
would be a custom request cycle I suppose.

OSIV servlet filter should work OK.

 I'm also wondering how it will mix with **HibernateTemplate** and if I
 will loose the ability to mark methods as *...@transactional(readOnly =
 true)** etc and thus loose the ability to get some more fine grained
 transaction control?

It depends on what exactly you have the filter do. If you
have the Hibernate transaction manager of Spring, all Spring
*Templates should play nicely with that. Often the filter is
only made to defer closing a session until the end of the
request and transactions must still be started explicitly.
Check out what the filter code does (and how it can be
configured).

 Is there some kind of best practice for how to integrate this kind of
 solution with a three tier architecture using Hibernate, Spring and
 Wicket?

No :)

  http://www.satisfice.com/blog/archives/27

There are a lot of good examples though, the one James
posted is probably good and you should be able to find more
by searching the Wiki and this list in Nabble.

 If I use OSIV I will at least never run into lazy loading exceptions,

Not exactly. You can easily run into lazy loading exceptions
if you store your lazy-loaded objects for more than one
request and then try to access their lazy properties during
and different session than the original one.

 on the other hand my transaction will live longer before being able to
 commit by being uncommitted in the view as well.

What do you mean with this exactly?

Best wishes,
Timo

-- 
Timo Rantalaiho   
Reaktor Innovations OyURL: http://www.ri.fi/ 

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



Re: Inconsistent Model Binding on Form Submit

2009-02-10 Thread Timo Rantalaiho
On Tue, 10 Feb 2009, Dane Laverty wrote:
 form. The problem is user-dependent, i.e. it always breaks for certain
 users and it never breaks for the other users. If a user calls us with
 this problem, we haven't been able to find anyway to get around it. I
 haven't been able to replicate the problem on my computer. I posted
 about this a few months ago, thinking it was a session problem, but now
 I see that the problem happens right when the test is submitted. This is
 with Wicket 1.3.4. Any ideas what would cause the model to lose the
 information for certain users?

Could it be that they are submitting the form with Enter on 
a certain browser?


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



Re: Problem with WebRequestCodingStrategy's and mobile phones

2009-02-10 Thread Jeremy Thomerson
Can one of the core devs add a note to the javadoc of
UrlCompressingWebCodingStrategy to the effect of NOTE: Using this strategy
may cause errors in some mobile phone browsers, specifically the Motorola V3
and other UP.Link browser mobile phones


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

On Mon, Feb 9, 2009 at 2:11 PM, Jeremy Levy jer...@meetmoi.com wrote:

 We figured out something very interesting with the default URL coding
 strategy's that Wicket uses when using mobile phones / devices.

 We run a fairly heavily trafficked mobile site, and having been using
 CryptedUrlWebRequestCodingStrategy for sometime.  While attempting to debug
 some page timeout issues we switched to UrlCompressingWebCodingStrategy and
 we started getting compaints from users that they were getting HTTP error
 400's.

 We were able to repeat the error locally, it happened only when using some
 specific phones and mobile browsers.  Specifically on the Motorola V3
 (useragent: MOT-V3re/0E.40.29R MIB/2.2.1 Profile/MIDP-2.0
 Configuration/CLDC-1.1 UP.Link/6.3.1.20.06.3.1.20.0) and other UP.Link
 browser moble phones.  We noticed that when the user got the 400 error
 there
 was nothing in our tomcat logs, or even in our apache logs.

 Switching to standard WebRequestCodingStrategy had the same issue.  I
 suspect that there are some characters in the form submit url ( :'s ?) that
 this crappy browser can't figure out to post to.  Swiching back to
 CryptedUrlWebRequestCodingStrategy fixed the problem.

 We tested this on several other handsets that we have available and can
 confirm that it breaks all form submits.

 This is a some what obsecure case, and perhaps irrelvant if you don't run a
 mobile site, but we saw our number's drop by about 20% - 50% until we
 figured this out.

 Hope this helps someone else.

 Jeremy

 --
 Jeremy Levy

 See my location in real-time:
 http://seemywhere.com/jeremy