Re: ContextNotActiveException using net.ftlines.wicket-cdi:wicket-cdi 1.2
Ah, thanks for noticing that. That is what happens when one person is late at night... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ContextNotActiveException-using-net-ftlines-wicket-cdi-wicket-cdi-1-2-tp4408946p4410191.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
ContextNotActiveException using net.ftlines.wicket-cdi:wicket-cdi 1.2
Hi, I am trying to use wicket + cdi, reading Ivan post at [1], there is an exception javax.enterprise.context.ContextNotActiveException: Conversation Context not active when method called on conversation Transient conversation I put the following excerpt in the HomePage.java but the error persist. @Inject Conversation conversation; public HomePage(final PageParameters parameters) { conversation.begin(); The full stacktrace is at [2] I tested with weld 1.1.2.Final and 1.1.5.Final the error is the same for both weld versions. The system runs with java 1.6 update 30. maven is 3.0.3 The quickstart project can be found at [3] To run type: mvn jetty:run Can you see something that I am missing to configure/code ? Thanks Claudio 1. https://www.42lines.net/2011/11/15/integrating-cdi-into-wicket/ 2. http://pastebin.com/qukj1btc 3. http://www.2shared.com/file/MJCf4E4T/cdi-wickettar.html -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ContextNotActiveException-using-net-ftlines-wicket-cdi-wicket-cdi-1-2-tp4408946p4408946.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Dynamically show and edit a textarea in a table
Thanks Heikki, it works! Heikki Uotinen wrote: > > if you put extra div around textarea and add it to the target it should > work > ----- Claudio Miranda http://weblogs.java.net/blog/claudio http://www.claudius.com.br/blog -- View this message in context: http://www.nabble.com/Dynamically-show-and-edit-a-textarea-in-a-table-tp21197799p21202544.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: Dynamically show and edit a textarea in a table
To let you know, the AjaxEditableMultiLineLabel.onEdit and AjaxFallbackLink.onClick are called and debug messages logged. Tried with wicket 1.3.5, same results, no textarea displayed. Claudio Miranda wrote: > > I need to dynamically show a textarea in a row of a table. > The textarea should only be displayed if the user wants to, as he needs to > click at some link. > I developed 2 tests using an AjaxEditableMultiLineLabel and a not visible > textarea. See the runnable code below, to take a look at. > > The wicket id is: rejectComment1 and rejectComment2 > > HTML Code (lines 53 and 60,61) > http://pastebin.com/m2492afac > > Java Code (lines 33 and 48) > http://pastebin.com/m490aa72b > > But none of them works! > > If I click at any of them, the textarea is not displayed. > > Are there issues to use them inside a table ? > > My system: > Wicket 1.4 RC1 > Firefox 3.0.4 > Glassfish v2 ur2 > Java 6 u11 > - Claudio Miranda http://weblogs.java.net/blog/claudio http://www.claudius.com.br/blog -- View this message in context: http://www.nabble.com/Dynamically-show-and-edit-a-textarea-in-a-table-tp21197799p21198096.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
Dynamically show and edit a textarea in a table
I need to dynamically show a textarea in a row of a table. The textarea should only be displayed if the user wants to, as he needs to click at some link. I developed 2 tests using an AjaxEditableMultiLineLabel and a not visible textarea. See the runnable code below, to take a look at. The wicket id is: rejectComment1 and rejectComment2 HTML Code (lines 53 and 60,61) http://pastebin.com/m2492afac Java Code (lines 33 and 48) http://pastebin.com/m490aa72b But none of them works! If I click at any of them, the textarea is not displayed. Are there issues to use them inside a table ? My system: Wicket 1.4 RC1 Firefox 3.0.4 Glassfish v2 ur2 Java 6 u11 Thanks ! Claudio Miranda - Claudio Miranda http://weblogs.java.net/blog/claudio http://www.claudius.com.br/blog -- View this message in context: http://www.nabble.com/Dynamically-show-and-edit-a-textarea-in-a-table-tp21197799p21197799.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: Redirect to HTTPS?
Resurrecting this thread from the dead :D disclaimer: I am very new to wicket and its philosophy, so I am making some points related to secure pages. I read about securing pages though ssl and made a comment there http://cwiki.apache.org/confluence/display/WICKET/How+to+switch+to+SSL+mode But I saw it too much unneeded coding, as servlet spec allows us to declare at web.xml the URLs to secure. At my application I can configure secure mount points, like "/admin" mountBookmarkablePage("/cad", Inicial.class); mountBookmarkablePage("/res", Resultado.class); mountBookmarkablePage("/admin/results", AdminResults.class); mountBookmarkablePage("/admin/users", AdminUsers.class); And declare the "/admin" as to be secured through SSL ssl-test resultado /admin/* GET POST HEAD PUT OPTIONS TRACE DELETE ssl mode CONFIDENTIAL I think its easier than doing all the code displayed before. And dismiss the application developer to know about server infrastructure (port and hostname) Eelco Hillenius wrote: > >> All the other encode methods get the proper wicket URL but doesn't >> prepend >> the webapp URI which this final encode method does. Beyond filing a RFE >> to >> either make this method non-final or provide a postEncode(RequestCycle, >> IRequestTarget) method before URL encoding, we will have to copy the >> entire >> class and provide this behavior. >> >> Thoughts? > > I stand by my suggestion that you could just try to redirect to a > secure page. After that, the relative URLs stay secure no? > > If I'm missing something, please tell. > - Claudio Miranda http://weblogs.java.net/blog/claudio http://www.claudius.com.br/blog -- View this message in context: http://www.nabble.com/Redirect-to-HTTPS--tp12861028p15618826.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where to find documentation for Wicket tags?
http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html MYoung wrote: > > Are they documented? > - Claudio Miranda http://weblogs.java.net/blog/claudio http://www.claudius.com.br/blog -- View this message in context: http://www.nabble.com/Where-to-find-documentation-for-Wicket-tags--tp15618680p15618719.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]